rename properties to property
This commit is contained in:
parent
17f7b36f81
commit
641bdebec5
2 changed files with 4 additions and 4 deletions
|
@ -233,7 +233,7 @@ public class ZNpcsPlus extends JavaPlugin {
|
||||||
.addSubcommand("skin", new SkinCommand(skinCache, npcRegistry, typeRegistry, propertyRegistry))
|
.addSubcommand("skin", new SkinCommand(skinCache, npcRegistry, typeRegistry, propertyRegistry))
|
||||||
.addSubcommand("delete", new DeleteCommand(npcRegistry, adventure))
|
.addSubcommand("delete", new DeleteCommand(npcRegistry, adventure))
|
||||||
.addSubcommand("move", new MoveCommand(npcRegistry))
|
.addSubcommand("move", new MoveCommand(npcRegistry))
|
||||||
.addSubcommand("properties", new PropertiesCommand(npcRegistry))
|
.addSubcommand("property", new PropertyCommand(npcRegistry))
|
||||||
.addSubcommand("teleport", new TeleportCommand(npcRegistry))
|
.addSubcommand("teleport", new TeleportCommand(npcRegistry))
|
||||||
.addSubcommand("list", new ListCommand(npcRegistry))
|
.addSubcommand("list", new ListCommand(npcRegistry))
|
||||||
.addSubcommand("near", new NearCommand(npcRegistry))
|
.addSubcommand("near", new NearCommand(npcRegistry))
|
||||||
|
|
|
@ -16,16 +16,16 @@ import net.kyori.adventure.text.format.NamedTextColor;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class PropertiesCommand implements CommandHandler {
|
public class PropertyCommand implements CommandHandler {
|
||||||
private final NpcRegistryImpl npcRegistry;
|
private final NpcRegistryImpl npcRegistry;
|
||||||
|
|
||||||
public PropertiesCommand(NpcRegistryImpl npcRegistry) {
|
public PropertyCommand(NpcRegistryImpl npcRegistry) {
|
||||||
this.npcRegistry = npcRegistry;
|
this.npcRegistry = npcRegistry;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run(CommandContext context) throws CommandExecutionException {
|
public void run(CommandContext context) throws CommandExecutionException {
|
||||||
context.setUsage(context.getLabel() + " properties <id> <property> <value>");
|
context.setUsage(context.getLabel() + " property <id> <property> <value>");
|
||||||
NpcEntryImpl entry = context.parse(NpcEntryImpl.class);
|
NpcEntryImpl entry = context.parse(NpcEntryImpl.class);
|
||||||
NpcImpl npc = entry.getNpc();
|
NpcImpl npc = entry.getNpc();
|
||||||
EntityPropertyImpl<?> property = context.parse(EntityPropertyImpl.class);
|
EntityPropertyImpl<?> property = context.parse(EntityPropertyImpl.class);
|
Loading…
Reference in a new issue