Guest User

Untitled

a guest
Dec 8th, 2019
87
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2. #
  3. # nCore by Vaded
  4. # Version 1.0
  5. # Requirements: SkQuery, Skript (2.1.2+)
  6. #
  7.  
  8. # Colors
  9. Color: &a
  10. # Messages
  11. deny-message: &cYou do not have permission to execute this command.
  12. # Mutechat-Messages
  13. mutechat-unmute: &aThe chat was unmuted by %{_p}%.
  14. mutechat-mute: &cThe chat was muted by %{_p}%.
  15.  
  16. command /ncore [<string>] [<text>]
  17.  
  18.  
  19. #-------------
  20. #
  21. # Modulities
  22. #
  23. #-------------
  24.  
  25.  
  26. # -StaffMode-
  27.  
  28. command /staffmode [<offline player>] [<text>]:
  29. permission: ncore.command.staffmode
  30. permission message: {@deny-message}
  31. aliases: /staff
  32. trigger:
  33. if executor is player:
  34. set {_p} to player
  35. else:
  36. set {_p} to "Console"
  37. if arg 1 is set:
  38. if player has permission "ncore.command.staffmode.others":
  39. if arg 1 is not online:
  40. send "&cThere is no player named %arg-1% online."
  41. else:
  42. if arg 1 is "%player%":
  43. player command "staffmode"
  44. stop
  45. if {staffmode.%arg-1%} is set:
  46. delete {staffmode.%arg-1%}
  47. clear arg-1's inventory
  48. wipe arg-1's sidebar
  49. send "&eYour StaffMode has been &cdisabled &eby %{_p}%." to arg 1
  50. send "&eYou have &cdisabled &eStaffMode for %arg-1%."
  51. loop all players:
  52. if loop-player has permission "ncore.notify.staffmode":
  53. send "&7&o[%{_p}%: &edisabled staffmode for %arg-1%&7&o]" to loop-player
  54.  
  55. else:
  56. set {staffmode.%arg-1%} to true
  57. set slot 0 of arg 1 to book named "&e&lInventory Viewer"
  58. set slot 1 of arg 1 to compass named "&e&lTeleportation Tool"
  59. set slot 2 of arg 1 to ice named "&7"
  60. if arg 1 has permission "worldedit.wand":
  61. set slot 6 of arg 1 to wooden axe named "&e&lWorldedit"
  62. if {vanish.%arg-1%} is set:
  63. set slot 7 of arg 1 to gray dye named "&7&lUnvanish"
  64. else:
  65. set slot 7 of arg 1 to light green dye named "&a&lVanish"
  66. set slot 8 of arg 1 to map named "&e&lPlayer List"
  67. wipe arg 1's sidebar
  68. set name of sidebar of arg 1 to "&3&lStaff Mode"
  69. set score "&a&7&m------------------------" in sidebar of player to 7
  70. set score "{@Color} * &eVanished: &f%{vanish.%arg-1%}%" in sidebar of arg 1 to 6
  71. set score "{@Color} * &eGamemode: &f%arg-1's gamemode%" in sidebar of arg 1 to 5
  72. set score "{@Color} * &ePing: &f%arg-1's ping%" in sidebar of arg 1 to 4
  73. set score "&d&7&m------------------------" in sidebar of arg 1 to 3
  74. set score "{@Color} * &ePlayers: &3%amount of all players%" in sidebar of arg 1 to 2
  75. set score "{@Color} * &eWorld: &3%arg-1's world%" in sidebar of arg 1 to 1
  76. set score "&3&7&m------------------------" in sidebar of arg 1 to 0
  77.  
  78. every 1 tick
  79. loop all players:
  80. if {staffmode.%loop-player%} is set:
  81. wipe loop-player's sidebar
  82. set name of sidebar of loop-player to "&3&lStaff Mode"
  83. set score "&a&7&m------------------------" in sidebar of loop-player to 7
  84. set score "{@Color} * &eVanished: &f%{vanish.%loop-player%}%" in sidebar of loop-player to 6
  85. set score "{@Color} * &eGamemode: &f%loop-player's gamemode%" in sidebar of loop-player to 5
  86. set score "{@Color} * &ePing: &f%loop-player's ping%" in sidebar of loop-player to 4
  87. set score "&d&7&m------------------------" in sidebar of loop-player to 3
  88. set score "{@Color} * &ePlayers: &3%amount of all players%" in sidebar of loop-player to 2
  89. set score "{@Color} * &eWorld: &3%loop-player's world%" in sidebar of loop-player to 1
  90. set score "&3&7&m------------------------" in sidebar of loop-player to 0
  91.  
  92.  
  93. #---------------------------------------------------------------------------------------------------------------------
  94.  
  95.  
  96.  
  97.  
  98. # -Mutechat-
  99.  
  100. command /mutechat [<text>]:
  101. permission: ncore.command.mutechat
  102. permission message: {@deny-message}
  103. trigger:
  104. if executor is player:
  105. set {_p} to player
  106. else:
  107. set {_p} to "Console"
  108. if {mutechat} is set:
  109. delete {mutechat}
  110. broadcast "&aThe chat was unmuted by %{_p}%."
  111. else:
  112. set {mutechat} to true
  113. broadcast "&cThe chat was muted by %{_p}%."
  114.  
  115.  
  116. # -Clearchat-
  117.  
  118. command /clearchat [<tex>]:
  119. permission: ncore.command.clearchat
  120. permission-message: {@deny-message}
  121. trigger:
  122. if executor is player:
  123. set {_p} to player
  124. else:
  125. set {_p} to "Console"
  126. loop all players:
  127. if loop-player does not have permission "ncore.bypass.clearchat":
  128. loop 50 times:
  129. send "&7 " to loop-player
  130. else:
  131. send "&aThe chat was cleared by %{_p}%." to loop-player
RAW Paste Data