Remove unused features from cmd script

This commit is contained in:
Daniel Saukel 2020-03-24 15:52:38 +01:00
parent 83f01ba08f
commit 37e07accd9

View File

@ -50,11 +50,6 @@ public class CommandTask extends BukkitRunnable {
@Override @Override
public void run() { public void run() {
if (!player.hasPermission(script.getPermission(player))) {
player.sendMessage(ChatColor.RED + "You do not have permission to use this command.");
return;
}
String command = script.getCommands().get(k++).replace("%player%", sender.getName()).replace("%player_name%", sender.getName()); String command = script.getCommands().get(k++).replace("%player%", sender.getName()).replace("%player_name%", sender.getName());
if (papi) { if (papi) {
Bukkit.getServer().dispatchCommand(sender, PlaceholderAPI.setPlaceholders(player, command)); Bukkit.getServer().dispatchCommand(sender, PlaceholderAPI.setPlaceholders(player, command));