From 641bdebec5ca1f207294e40536f2cf81752dceb7 Mon Sep 17 00:00:00 2001 From: Pyrbu Date: Wed, 14 Jun 2023 14:45:04 +0200 Subject: [PATCH] rename properties to property --- plugin/src/main/java/lol/pyr/znpcsplus/ZNpcsPlus.java | 2 +- .../{PropertiesCommand.java => PropertyCommand.java} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename plugin/src/main/java/lol/pyr/znpcsplus/commands/{PropertiesCommand.java => PropertyCommand.java} (94%) 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);