PabloEduardo

listau

May 25th, 2022 (edited)
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. import:
  2. org.bukkit.event.player.PlayerCommandPreprocessEvent
  3. command /cls [<text>] [<offline player>]:
  4. executable by: console
  5. trigger:
  6. if arg 1 is "add" or "añadir" or "a":
  7. if arg 2 is set:
  8. add arg-2 to {Extras.comandos::*}
  9. send "&a%arg-2% Añadido"
  10. if arg 1 is "remove" or "remover" or "r" or "e" or "eliminar":
  11. if arg 2 is set:
  12. remove arg-2 from {Extras.comandos::*}
  13. send "&c%arg-2% Removido"
  14. if arg 1 is "lista" or "l":
  15. if arg 2 is set:
  16. send "Personas que pueden usar estos Comandos: %nl%&a%{Extras.comandos::*}%" to arg-2
  17. else:
  18. send "Personas que pueden usar estos Comandos: %nl%&a%{Extras.comandos::*}%"
  19. on PlayerCommandPreprocessEvent:
  20. if event.getMessage() contains "dinerillo" or "edrm" or "Rfed" or "koth" or "mm m spawn" or "repair" or "mm spawners removecondition" or "mm spawners move" or "mm spawners cut" or "mm spawners paste" or "mm spawners undo" or "mm s create" or "mm s delete" or "mm s set" or "mm s addcondition" or "mm s removecondition" or "mm s move" or "mm s cut" or "mm s paste" or "mm s undo" or "mm spawners copy" or "mm i give" or "mm i get" or "mm items give" or "mm items get" or "mm i" or "mm items" or "dinerorpg" or "shopkeeper" or "authme forcelogin" or "co inspect" or "coreprotect inspect" or "co purge" or "coreprotect purge" or "co rollback" or "coreprotect rollback" or "co restore" or "coreprotect restore" or "co lookup" or "coreprotect lookup" or "copy" or "stack" or "wand" or "/cut" or "pardon" or "2fa disable" or "/lc":
  21. if {Extras.comandos::*} contain event.getPlayer():
  22. stop
  23. else:
  24. event.setCancelled(true)
  25.  
  26.  
  27. command /clshops [<text>] [<offline player>]:
  28. executable by: console
  29. trigger:
  30. if arg 1 is "add" or "añadir" or "a":
  31. if arg 2 is set:
  32. add arg-2 to {Extras.Shops::*}
  33. send "&a%arg-2% Añadido"
  34. if arg 1 is "remove" or "remover" or "r" or "e" or "eliminar":
  35. if arg 2 is set:
  36. remove arg-2 from {Extras.Shops::*}
  37. send "&c%arg-2% Removido"
  38. if arg 1 is "lista" or "l":
  39. if arg 2 is set:
  40. send "Personas que pueden usar estos Comandos: %nl%&a%{Extras.Shops::*}%" to arg-2
  41. else:
  42. send "Personas que pueden usar estos Comandos: %nl%&a%{Extras.Shops::*}%"
  43. on PlayerCommandPreprocessEvent: #Solo Shops
  44. if event.getMessage() contains "Shop":
  45. if {Extras.Shops::*} contain event.getPlayer():
  46. stop
  47. else:
  48. event.setCancelled(true)
Add Comment
Please, Sign In to add comment