Fixed a typo and changed tabulation for spaces.
Fixed typo: "sucessfully" for "succesfully".
This commit is contained in:
parent
a8d3dfa042
commit
278e61ca69
|
@ -10,24 +10,24 @@ import org.bukkit.entity.Player;
|
|||
|
||||
public class CommandETF implements CommandExecutor {
|
||||
|
||||
@Override
|
||||
public boolean onCommand(CommandSender commandSender, Command command, String label, String[] args) {
|
||||
if (commandSender instanceof Player) {
|
||||
if (!VaultManager.hasPermission((Player) commandSender, "entitytrackerfixer.reload")) {
|
||||
commandSender.sendMessage(ChatColor.RED + "You don't have permission to use that command.");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (args.length == 0) {
|
||||
commandSender.sendMessage(ChatColor.RED + "No arguments provided. Available: " + ChatColor.GOLD + "/etf reload" + ChatColor.RED + ".");
|
||||
return true;
|
||||
}
|
||||
if (args[0].equalsIgnoreCase("reload")) {
|
||||
EntityTrackerFixer.plugin.reload();
|
||||
commandSender.sendMessage(ChatColor.GREEN + "The config has been reloaded sucessfully!");
|
||||
return true;
|
||||
}
|
||||
commandSender.sendMessage(ChatColor.RED + "Invalid argument. Available: " + ChatColor.GOLD + "/etf reload" + ChatColor.RED + ".");
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean onCommand(CommandSender commandSender, Command command, String label, String[] args) {
|
||||
if (commandSender instanceof Player) {
|
||||
if (!VaultManager.hasPermission((Player) commandSender, "entitytrackerfixer.reload")) {
|
||||
commandSender.sendMessage(ChatColor.RED + "You don't have permission to use that command.");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (args.length == 0) {
|
||||
commandSender.sendMessage(ChatColor.RED + "No arguments provided. Available: " + ChatColor.GOLD + "/etf reload" + ChatColor.RED + ".");
|
||||
return true;
|
||||
}
|
||||
if (args[0].equalsIgnoreCase("reload")) {
|
||||
EntityTrackerFixer.plugin.reload();
|
||||
commandSender.sendMessage(ChatColor.GREEN + "The config has been reloaded successfully!");
|
||||
return true;
|
||||
}
|
||||
commandSender.sendMessage(ChatColor.RED + "Invalid argument. Available: " + ChatColor.GOLD + "/etf reload" + ChatColor.RED + ".");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue