Skip to content

Commit

Permalink
Fixed command usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Lloyd26 committed Jul 14, 2021
1 parent 982d573 commit a290207
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -27,7 +27,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
teleportUtil.setStaffMessage(plugin.getConfig().getString("messages.commands.tpall.self.staff").replace("%player%", player.getName()));
teleportUtil.teleportPlayer();
} else if (args.length == 0) {
sender.sendMessage(Utils.setUsage("/teleportall <player> / <x> <y> <z> [<yaw> <pitch>]"));
sender.sendMessage(Utils.setUsage("/teleportall <player>"));
} else if (args.length == 1) {
if (Bukkit.getOnlinePlayers().contains(Bukkit.getPlayer(args[0]))) {
Player player = Bukkit.getPlayer(args[0]);
Expand Down
Expand Up @@ -186,7 +186,7 @@ public void teleportPlayer() {
Utils.broadcastToConsole(ChatColor.translateAlternateColorCodes('&', getStaffMessage().replace("%coords%", coords)));
}
} else {
getExecutor().sendMessage(Utils.setUsage("/teleport [player] <x> <y> <z> [yaw] [pitch]"));
getExecutor().sendMessage(Utils.setUsage("/teleport [player] <x> <y> <z> [<yaw> <pitch>]"));
}
} else {
if (getPlayer() != null) {
Expand Down

0 comments on commit a290207

Please sign in to comment.