Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. package skillunity.rand.commands;
  2.  
  3. import com.sun.javafx.scene.traversal.TopMostTraversalEngine;
  4. import org.bukkit.command.Command;
  5. import org.bukkit.command.CommandExecutor;
  6. import org.bukkit.command.CommandSender;
  7. import org.bukkit.entity.Player;
  8.  
  9. public class EnderChestCommand implements CommandExecutor {
  10.  
  11. private Player player;
  12. Player getPlayer;
  13.  
  14. @Override
  15. public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
  16.  
  17. if (sender instanceof Player) {
  18. player = (Player) sender;
  19. }
  20.  
  21.  
  22. if (player.hasPermission("rand.command.ec")) {
  23. player.getEnderChest();
  24.  
  25. }
  26.  
  27.  
  28. return true;
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement