mirror of
https://github.com/darksaid98/Builders-Utilities.git
synced 2026-12-03 14:38:48 +00:00
1.14+ support & Recode
This commit is contained in:
1 parent
74a4eeb19f
commit
d2f6e0a1c8
65 files changed
+6487
No files matched your search
@@ -0,0 +1,27 @@
|
||||
package com.arcaniax.buildersutilities.commands.aliases;
|
||||
|
||||
import com.arcaniax.buildersutilities.Main;
|
||||
import com.arcaniax.buildersutilities.Settings;
|
||||
import com.arcaniax.buildersutilities.commands.system.ICommand;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class CopyAliasCommand implements ICommand {
|
||||
@Override
|
||||
public void execute(Player player, String[] args) {
|
||||
if (!player.hasPermission("builders.util.aliases")) {
|
||||
if (Settings.sendErrorMessages) {
|
||||
player.sendMessage(Main.MSG_ERROR + "You do not have access to this command.");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
StringBuilder builder = new StringBuilder();
|
||||
if (args.length != 0) {
|
||||
for (String arg : args) {
|
||||
builder.append(arg).append(" ");
|
||||
}
|
||||
}
|
||||
|
||||
Main.getInstance().getServer().dispatchCommand(player, "/copy " + builder.toString());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user