mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-24 03:25:13 +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));
|
||||
if (clazz == null)
|
||||
throw new CommandException(Messages.TRAIT_NOT_FOUND);
|
||||
if (!clazz.isAssignableFrom(CommandConfigurable.class))
|
||||
if (!CommandConfigurable.class.isAssignableFrom(clazz))
|
||||
throw new CommandException(Messages.TRAIT_NOT_CONFIGURABLE);
|
||||
if (!npc.hasTrait(clazz))
|
||||
throw new CommandException(Messages.TRAIT_NOT_FOUND_ON_NPC);
|
||||
|
Loading…
Reference in New Issue
Block a user