Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. # coded by Quapi
  2. # Please do nt steal any of the code.
  3.  
  4. command /setadminjail:
  5. aliases: setjail, jailset, setj, sj, saj
  6. permission: admin.setjail
  7. permission message: &cSorry, but you don't have permission to execute this command!
  8. description: Set the jail at your location.
  9. trigger:
  10. message "&6You have &cset jail&6 at your location!"
  11. set {jail} to location of player
  12.  
  13. command /jail [<player>]:
  14. permission: admin.jail
  15. permission message: &cSorry, but you don't have permission to execute this command!
  16. description: Teleport you to jail.
  17. trigger:
  18. if {jail} isn't set:
  19. message "&4Error: &cJail is not ready yet!"
  20. stop
  21. else:
  22. argument 1 is not set:
  23. teleport player to {jail}
  24. message "&4JAILED"
  25. else:
  26. if sender has permission "admin.tp.jail":
  27. if argument is online:
  28. teleport argument to {jail}
  29. if sender is a player:
  30. message "&aYou have been &4Jailed &aby&b %player%&a!" to argument 1
  31. apply slowness 2000000 to the player for 999 days
  32. apply blindness 10 to the player for 999 days
  33. if sender is not a player:
  34. message "&aYou have been &4Jailed &aby &cConsole&a!" to argument 1
  35. teleport player to {jail}
  36. else:
  37. message "&cSorry, but you don't have permission to execute this command!"
  38.  
  39. command /deladminjail:
  40. aliases: daj, deletejail, removejail, sjr, raj, jailremove, jaildelete
  41. permission: admin.deljail
  42. permission message: &cSorry, but you don't have permission to execute this command!
  43. description: Unset jail location.
  44. trigger:
  45. delete {jail}
  46. message "&6You have successfully unset &cjail6!"
  47.  
  48. command /unjail [<player>]:
  49. permission: admin.unjail
  50. permission message: &cSorry, but you don't have permission to execute this command!
  51. description: Unjail.
  52. trigger:
  53. if {spawn} isn't set:
  54. message "&4Error: &cspawn is not ready yet!"
  55. stop
  56. else:
  57. argument 1 is not set:
  58. teleport player to {spawn}
  59. message "&&a You have been unjailed"
  60. else:
  61. if sender has permission "admin.jail.unjail":
  62. if argument is online:
  63. teleport argument to {spawn}
  64. if sender is a player:
  65. message "&aYou have been &bUnJailed &aby&b %player%&a!" to argument 1
  66. make console execute "effect %player% clear"
  67. if sender is not a player:
  68. message "&aYou have been &bUnJailed &aby &cConsole&a!" to argument 1
  69. teleport player to {spawn}
  70. else:
  71. message "&cSorry, but you don't have permission to execute this command!"
  72.  
  73. command /setspawn:
  74. aliases: spawnset, sethub, hubset, setlobby, lobbyset
  75. permission: admin.setspawn
  76. permission message: &cYou are not allowed to execute admin commands!
  77. description: Set spawn at your location.
  78. trigger:
  79. message "&eSpawn is set and ready to go!"
  80. set {spawn} to location of player
  81.  
  82. command /spawn [<player>]:
  83. aliases: hub, lobby
  84. permission: global.spawn
  85. permission message: &cSorry, but you don't have permission to execute this command!
  86. description: Teleport you to spawn.
  87. trigger:
  88. if {spawn} isn't set:
  89. message "&4Error: &cSpawn is not ready yet!"
  90. stop
  91. else:
  92. argument 1 is not set:
  93. teleport player to {spawn}
  94. message "&aTeleporting to spawn..."
  95. else:
  96. if sender has permission "admin.tp.spawn":
  97. if argument is online:
  98. teleport argument to {spawn}
  99. if sender is a player:
  100. message "&aYou have been teleported to spawn by&b %player%." to argument 1
  101. if sender is not a player:
  102. message "&6You have been teleported to spawn by &cConsole&6." to argument 1
  103. teleport player to {spawn}
  104. else:
  105. message "&cSorry, but you don't have permission to execute this command!"
  106.  
  107. command /delspawn:
  108. permission: admin.delspawn
  109. permission message: &cSorry, but you don't have permission to execute this command!
  110. description: Unset spawn location.
  111. trigger:
  112. delete {spawn}
  113. message "&6You have successfully unset &cspawn6!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement