mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-12-01 06:53:26 +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
|
@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));
|
||||||
|
Loading…
Reference in New Issue
Block a user