diff --git a/plugin/src/main/java/lol/pyr/znpcsplus/ZNpcsPlus.java b/plugin/src/main/java/lol/pyr/znpcsplus/ZNpcsPlus.java index d1d9829..983d8fa 100644 --- a/plugin/src/main/java/lol/pyr/znpcsplus/ZNpcsPlus.java +++ b/plugin/src/main/java/lol/pyr/znpcsplus/ZNpcsPlus.java @@ -233,7 +233,7 @@ public class ZNpcsPlus extends JavaPlugin { .addSubcommand("skin", new SkinCommand(skinCache, npcRegistry, typeRegistry, propertyRegistry)) .addSubcommand("delete", new DeleteCommand(npcRegistry, adventure)) .addSubcommand("move", new MoveCommand(npcRegistry)) - .addSubcommand("properties", new PropertiesCommand(npcRegistry)) + .addSubcommand("property", new PropertyCommand(npcRegistry)) .addSubcommand("teleport", new TeleportCommand(npcRegistry)) .addSubcommand("list", new ListCommand(npcRegistry)) .addSubcommand("near", new NearCommand(npcRegistry)) diff --git a/plugin/src/main/java/lol/pyr/znpcsplus/commands/PropertiesCommand.java b/plugin/src/main/java/lol/pyr/znpcsplus/commands/PropertyCommand.java similarity index 94% rename from plugin/src/main/java/lol/pyr/znpcsplus/commands/PropertiesCommand.java rename to plugin/src/main/java/lol/pyr/znpcsplus/commands/PropertyCommand.java index 2378063..d5c0883 100644 --- a/plugin/src/main/java/lol/pyr/znpcsplus/commands/PropertiesCommand.java +++ b/plugin/src/main/java/lol/pyr/znpcsplus/commands/PropertyCommand.java @@ -16,16 +16,16 @@ import net.kyori.adventure.text.format.NamedTextColor; import java.util.Collections; import java.util.List; -public class PropertiesCommand implements CommandHandler { +public class PropertyCommand implements CommandHandler { private final NpcRegistryImpl npcRegistry; - public PropertiesCommand(NpcRegistryImpl npcRegistry) { + public PropertyCommand(NpcRegistryImpl npcRegistry) { this.npcRegistry = npcRegistry; } @Override public void run(CommandContext context) throws CommandExecutionException { - context.setUsage(context.getLabel() + " properties "); + context.setUsage(context.getLabel() + " property "); NpcEntryImpl entry = context.parse(NpcEntryImpl.class); NpcImpl npc = entry.getNpc(); EntityPropertyImpl property = context.parse(EntityPropertyImpl.class);