mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 05:26:29 +01:00
Remove unused features from cmd script
This commit is contained in:
parent
83f01ba08f
commit
37e07accd9
@ -50,11 +50,6 @@ public class CommandTask extends BukkitRunnable {
|
||||
|
||||
@Override
|
||||
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());
|
||||
if (papi) {
|
||||
Bukkit.getServer().dispatchCommand(sender, PlaceholderAPI.setPlaceholders(player, command));
|
||||
|
Loading…
Reference in New Issue
Block a user