Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
- if(cmd.getName().equalsIgnoreCase("givedonor")) {
- Player p = (Player) sender;
- Player t = Bukkit.getServer().getPlayer(args[0]);
- if(args.length <= 0) {
- p.sendMessage(ChatColor.RED + "Invalid arguements!");
- return true;
- }
- if(args.length > 0) {
- if(t == null) {
- p.sendMessage(ChatColor.RED + "That player is offline!");
- return true;
- }
- else if (args.length > 0) {
- if(args[1].equalsIgnoreCase("VIP")) {
- if(p.hasPermission("brawl.givedonor")) {
- // give donor items
- return true;
- }
- else if (args.length > 0)
- if(args[1].equalsIgnoreCase("Sponsor")) {
- if(p.hasPermission("brawl.givedonor")) {
- //give donor items
- return true;
- }
- else if (args.length > 0) {
- if(args[1].equalsIgnoreCase("Elite")) {
- if(p.hasPermission("brawl.givedonor")) {
- //give donor items
- return true;
- }
- else if (args.length > 0) {
- if(args[1].equalsIgnoreCase("Legend")) {
- if(p.hasPermission("brawl.givedonor")) {
- return true;
- }
- else if (args.length > 0) {
- if(args[1].equalsIgnoreCase("Sonic")) {
- if(p.hasPermission("brawl.givedonor")) {
- //give donor items
- return true;
- }
- else if (args.length > 0){
- if(args[1].equalsIgnoreCase("King")) {
- if(p.hasPermission("brawl.givedonor")) {
- //give donor items
- return true;
- }
- else if (args.length > 0) {
- if(args[1].equalsIgnoreCase("Master")) {
- if(p.hasPermission("brawl.givedonor")) {
- //give donor items
- return true;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement