mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-17 12:51:31 +01:00
Derp, fix order
This commit is contained in:
parent
8bb958e2d3
commit
5884059528
@ -71,7 +71,7 @@ public class TraitCommands {
|
|||||||
Class<? extends Trait> clazz = CitizensAPI.getTraitFactory().getTraitClass(args.getString(0));
|
Class<? extends Trait> clazz = CitizensAPI.getTraitFactory().getTraitClass(args.getString(0));
|
||||||
if (clazz == null)
|
if (clazz == null)
|
||||||
throw new CommandException(Messages.TRAIT_NOT_FOUND);
|
throw new CommandException(Messages.TRAIT_NOT_FOUND);
|
||||||
if (!clazz.isAssignableFrom(CommandConfigurable.class))
|
if (!CommandConfigurable.class.isAssignableFrom(clazz))
|
||||||
throw new CommandException(Messages.TRAIT_NOT_CONFIGURABLE);
|
throw new CommandException(Messages.TRAIT_NOT_CONFIGURABLE);
|
||||||
if (!npc.hasTrait(clazz))
|
if (!npc.hasTrait(clazz))
|
||||||
throw new CommandException(Messages.TRAIT_NOT_FOUND_ON_NPC);
|
throw new CommandException(Messages.TRAIT_NOT_FOUND_ON_NPC);
|
||||||
|
Loading…
Reference in New Issue
Block a user