Changed "position" command to "location"

This commit is contained in:
David Berdik 2021-07-07 16:59:26 -04:00
parent bfcedd4ea4
commit 26975a87c4
2 changed files with 7 additions and 7 deletions

View File

@ -22,7 +22,7 @@ public class CmdExecutor implements CommandExecutor {
private Logger log = null;
private HashMap<String, SubCommand> subCommands = new HashMap<String, SubCommand>();
private String[] helpCommandOrder = {
"reload", "pluginreport", "cancel", "allworlds", "position", "attack", "haunt", "heads",
"reload", "pluginreport", "cancel", "allworlds", "location", "attack", "haunt", "heads",
"bury", "curse", "burn", "pyramid", "cave", "temple", "graveyard", "speakrandom", "speak" };
public CmdExecutor(Herobrine p) {
@ -40,7 +40,7 @@ public class CmdExecutor implements CommandExecutor {
subCommands.put("cave", new CmdCave(p, log));
subCommands.put("graveyard", new CmdGraveyard(p, log));
subCommands.put("allworlds", new CmdAllWorlds(p, log));
subCommands.put("position", new CmdPosition(p, log));
subCommands.put("location", new CmdLocation(p, log));
subCommands.put("heads", new CmdHeads(p, log));
subCommands.put("speakrandom", new CmdSpeakRandom(p, log));
subCommands.put("speak", new CmdSpeak(p, log));

View File

@ -8,9 +8,9 @@ import org.bukkit.entity.Player;
import net.theprogrammersworld.herobrine.Herobrine;
public class CmdPosition extends SubCommand {
public class CmdLocation extends SubCommand {
public CmdPosition(Herobrine plugin, Logger log) {
public CmdLocation(Herobrine plugin, Logger log) {
super(plugin, log);
}
@ -18,7 +18,7 @@ public class CmdPosition extends SubCommand {
public boolean execute(Player player, String[] args) {
Location loc = plugin.HerobrineNPC.getBukkitEntity().getLocation();
sendMessage(player, ChatColor.GREEN + "[Herobrine] Position - "
sendMessage(player, ChatColor.GREEN + "[Herobrine] Location - "
+ "World: "+ loc.getWorld().getName()
+ ", Coordinates: (" + (int) loc.getX() + ", " + (int) loc.getY() + ", " + (int) loc.getZ() + ")");
@ -27,12 +27,12 @@ public class CmdPosition extends SubCommand {
@Override
public String help() {
return ChatColor.GREEN + "/herobrine position";
return ChatColor.GREEN + "/herobrine location";
}
@Override
public String helpDesc() {
return ChatColor.GREEN + "Displays Herobrine's coordinates";
return ChatColor.GREEN + "Displays Herobrine's location";
}
}