Guest User

Untitled

a guest
Apr 26th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. package com.bukkit.Ryaan_Wilcox.Cake;
  2.  
  3. public class cake {
  4. public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
  5. Player player = null;
  6. if (sender instanceof Player) {
  7. player = (Player) sender;
  8. }
  9.  
  10. if (cmd.getName().equalsIgnoreCase("cake")){
  11. return true;
  12. } else if (cmd.getName().equalsIgnoreCase("cakes") {
  13. if (player == null) {
  14. sender.sendMessage("The cake is a lie!");
  15. } else {
  16. }
  17. return true;
  18. }
  19. return false;
  20. }
  21. }
Add Comment
Please, Sign In to add comment