SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.starboy.files.Commands;
  2.  
  3. import me.starboy.files.Utils.Color;
  4. import org.bukkit.Bukkit;
  5. import org.bukkit.command.Command;
  6. import org.bukkit.command.CommandExecutor;
  7. import org.bukkit.command.CommandSender;
  8. import org.bukkit.entity.Player;
  9. import org.bukkit.inventory.Inventory;
  10.  
  11. import java.nio.Buffer;
  12.  
  13. public class Transfer implements CommandExecutor {
  14.  
  15.     public boolean onCommand(CommandSender sender, Command command, String cmd, String[] args) {
  16.         if(cmd.equalsIgnoreCase("eco")) {
  17.             if(args.length == 0) {     //if the player only use /eco it will say the command is /eco transfer
  18.                 sender.sendMessage(Color.add("&CNot enough arguments please use /eco transfer"));
  19.             } else {
  20.                 if(args[0].equalsIgnoreCase("transfer")) {
  21.  
  22.                 }
  23.             }
  24.             if(!(sender instanceof Player)) {
  25.                 sender.sendMessage("Does not work");
  26.                 return true;
  27.             }
  28.  
  29.             Player player = (Player) sender;
  30.  
  31.             Inventory transfer = Bukkit.createInventory(null,54,Color.add("&B&LTransfer"));
  32.             player.openInventory(transfer);
  33.  
  34.             }
  35.         return true;
  36.  
  37.     }
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top