a bunch of stuff im too lazy to go through (1.3.4)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package us.ajg0702.queue.spigot;
|
||||
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class Commands implements CommandExecutor {
|
||||
|
||||
Main pl;
|
||||
public Commands(Main pl) {
|
||||
this.pl = pl;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||
if(!(sender instanceof Player)) return true;
|
||||
Player player = (Player) sender;
|
||||
if(args.length < 1) return false;
|
||||
this.pl.sendMessage(player, "queue", args[0]);
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user