SHARE
TWEET

Untitled

a guest Jul 28th, 2019 134 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cmd add mute load %mute%
  2. cmd add mute if varset(%mute%['allowed']) = %false% then goto 4
  3. cmd add mute if playergroup(%p%) in %mute%['allowed'] then goto 8
  4. cmd add mute let %status% = playerstatus(%p%)
  5. cmd add mute if %status%['op'] = %true% then goto 8
  6. cmd add mute message %p% \"§cYou do not have permission to use this command!\"
  7. cmd add mute exit
  8. cmd add mute if varset(%args%[1]) then goto
  9. cmd add mute message %p% \"§cUsage: /mute <player>\"
  10. cmd add mute exit
  11. cmd add mute if %args%[1] = \"addgroup\" then goto 17
  12. cmd add mute if %args%[1] = \"removegroup\" then goto 28
  13. cmd add mute if %args%[1] = \"listgroups\" then goto 48
  14. cmd add mute if %args%[1] = \"list\" then goto 59
  15. cmd add mute if %args%[1] = \"help\" then goto 67
  16. cmd add mute goto 69
  17. cmd add mute let %allowed% = array()
  18. cmd add mute if varset(%mute%['allowed']) then let %allowed% = %mute%['allowed']
  19. cmd add mute if varset(%args%[2]) then goto 22
  20. cmd add mute message %p% \"§cUsage: /mute addgroup <group>\"
  21. cmd add mute exit
  22. cmd add mute let %group% = %args%[2]
  23. cmd add mute let %muted%[] = %group%
  24. cmd add mute let %mute%['allowed'] = %muted%
  25. cmd add mute save %mute%
  26. cmd add mute message %p% \"§a\" + %group% + \" has been successfully added to the permission list!\"
  27. cmd add mute exit
  28. cmd add mute let %allowed% = array()
  29. cmd add mute if varset(%mute%['allowed']) then let %allowed% = %mute%['allowed']
  30. cmd add mute if varset(%args%[2]) then goto 33
  31. cmd add mute message %p% \"§cUsage: /mute addgroup <group>\"
  32. cmd add mute exit
  33. cmd add mute let %group% = %args%[2]
  34. cmd add mute if %group% in %allowed% then goto 37
  35. cmd add mute message %p% \"§cThis group is does not have permission to use this command!\"
  36. cmd add mute exit
  37. cmd add mute async
  38. cmd add mute let %size% = size(%allowed%)
  39. cmd add mute let %size% = %size% - 1
  40. cmd add mute if %size% = -1 then goto 33
  41. cmd add mute if %allowed%[%size%] != %group% then goto 37
  42. cmd add mute sync
  43. cmd add mute let %allowed%[%size%] =
  44. cmd add mute let %mute%['allowed'] = %allowed%
  45. cmd add mute save %mute%
  46. cmd add mute message %p% \"§aSuccessfully removed \" + %group% + \" from permission list!\"
  47. cmd add mute exit
  48. cmd add mute let %allowed% = array()
  49. cmd add mute if varset(%mute%['allowed']) then let %allowed% = %mute%['allowed']
  50. cmd add mute if varset(%args%[2]) then goto 53
  51. cmd add mute message %p% \"§cUsage: /mute addgroup <group>\"
  52. cmd add mute exit
  53. cmd add mute if size(%allowed%) > 0 then goto 56
  54. cmd add mute message %p% \"§cThere is no one on the permission list! Use /mute addgroup <group>\"
  55. cmd add mute exit
  56. cmd add mute let %allowed% = join(%allowed%, \", \")
  57. cmd add mute message %p% \"§aAllowed Groups: \" + %allowed%
  58. cmd add mute exit
  59. cmd add mute %muted% = array()
  60. cmd add mute if varset(%mute%['muted']) then let %muted% = %mute%['muted']
  61. cmd add mute if size(%muted%) > 0 then goto 64
  62. cmd add mute message %p% \"§cNo one has been muted!\"
  63. cmd add mute exit
  64. cmd add mute let %muted% = join(%muted%, \", \")
  65. cmd add mute message %p% \"§aMuted Players: \" + %muted%
  66. cmd add mute exit
  67. cmd add mute message %p% \"§aMute Help:\\n §7/mute help\\n§7/mute addgroup <group>\\n§7/mute removegroup <group>\\n§7/mute listgroups\\n§7/mute list\\n§7/mute <player>\"
  68. cmd add mute exit
  69. cmd add mute let %player% = %args%[1]
  70. cmd add mute if %player% in onlineplayers() then goto 73
  71. cmd add mute message %p% \"§c\" + %player% + \" is not online!\"
  72. cmd add mute exit
  73. cmd add mute %muted% = array()
  74. cmd add mute if varset(%mute%['muted']) then let %muted% = %mute%['muted']
  75. cmd add mute if %player% notin %muted% then goto 78
  76. cmd add mute message %p% \"§cThis player is already muted!\"
  77. cmd add mute exit
  78. cmd add mute %muted%[] = %player%
  79. cmd add mute let %mute%['muted'] = %muted%
  80. cmd add mute save %mute%
  81. cmd add mute message %p% \"§aMuted \" + %p%
  82. cmd add mute message %player% \"§cYou have been muted!\"
  83. cmd add mute exit
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
Top