Skip to content

Don't require a player instance when placeholding #2

@Scarsz

Description

@Scarsz

This if statement has no good purpose.

Check if the player instance is null lower when it would actually be required, in this condition:

if (identifier.equalsIgnoreCase("time"))
return dateManager.getDate(format, dateManager.getTimeZone(p));

Needlessly requiring the player object before it's actually needed prevents placeholders from this plugin from working at all when called without a player object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions