twinlio

Skript Report System for Mincraft

May 22nd, 2020
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. command /report [<player>]:
  2. usage: /report [Player]
  3. description: &aReport a player for a reason!
  4. trigger:
  5. if arg is set:
  6. open chest with 3 rows named "&6Please select a reason" to player
  7. wait 1 tick
  8. format slot 0 of player with iron sword named "&aKill Aura" to run [make player execute command "/confirmreport %arg% Kill-Aura"]
  9. format slot 1 of player with rabbit's foot named "&aSpeed Hacks" to run [make player execute command "/confirmreport %arg% Speed-Hacks"]
  10. format slot 2 of player with white wool named "&aScaffold" to run [make player execute command "/confirmreport %arg% Scaffold"]
  11. format slot 3 of player with obsidian named "&aX-Ray (or similar)" to run [make player execute command "/confirmreport %arg% XRay"]
  12. format slot 4 of player with nametag named "&aIRL Trading" to run [make player execute command "/confirmreport %arg% IRL-Trading"]
  13. format slot 5 of player with lava bucket named "&aBug Abuse" to run [make player execute command "/confirmreport %arg% Bug-Abuse"]
  14. format slot 6 of player with anvil named "&aInappropriate Language" to run [make player execute command "/confirmreport %arg% Inappropriate-Language"]
  15. format slot 7 of player with arrow named "&aAdvertisement" to run [make player execute command "/confirmreport %arg% Advertisement"]
  16. format slot 8 of player with blaze rod named "&aRacism / Sexism" to run [make player execute command "/confirmreport %arg% Racism/Sexism"]
  17. format slot 9 of player with bow named "&aSpamming" to run [make player execute command "/confirmreport %arg% Spamming"]
  18. format slot 10 of player with bone named "&aHatespeech" to run [make player execute command "/confirmreport %arg% Hatespeech"]
  19. if arg is not set:
  20. send " " to player
  21. send "&cPlease specify a player name!" to player
  22. send " " to player
  23.  
  24. command /confirmreport <player> <text>:
  25. trigger:
  26. open chest with 3 rows named "&6Confirm Report" to player
  27. wait 1 tick
  28.  
  29. format slot 12 of player with green wool named "&aConfirm" to close then run [make player execute command "/finalconfirmreport %arg-1% %arg-2%"]
  30. format slot 14 of player with red wool named "&cCancel" to close
  31.  
  32.  
  33. command /finalconfirmreport [<player>] <text>:
  34. usage: /report <player>
  35. description: &aReport a player for a reason!
  36. trigger:
  37. if arg-2 is set:
  38. add 1 to {reports.taken.%arg-1%}
  39. add 1 to {reports.given.%player%}
  40. send "&cThanks for your report to &r%arg-1% &cfor the reason &r%arg-2%"
  41. loop all players:
  42. if loop-player has permission "reports.see":
  43. send formatted "<reset>&b[REPORT] <cmd:/tp %arg-1%>&c%arg-1% <reset>&bhas been reported by &c%player% &bfor the reason &c%arg-2%" to player
  44. if arg-2 is not set:
  45. send "&cUse /report!" to player
  46. if arg-1 is not set:
  47. send "&cUse /report!" to player
  48.  
  49.  
  50. command /reports <text> [<offline player>]:
  51. trigger:
  52. if player has permission "reports.manage":
  53. if arg-2 is set:
  54. if arg-1 is set:
  55. if arg-1 is "list":
  56. send "&9REPORT STATS OF %arg-2%" to player
  57. send "&bReceived &a%{reports.taken.%arg-2%}% &breports" to player
  58. send "&bIssued &a%{reports.given.%arg-2%}% &breports" to player
  59. if arg-1 is "reset":
  60. set {reports.taken.%arg-2%} to 0
  61. set {reports.given.%arg-2%} to 0
  62. send "&bReport stats have been reset for %arg-1%!" to player
  63. else if arg-2 is not set:
  64. send "&bSpecify a player!" to player
  65. else if arg-1 is not set:
  66. send "&bWrite a sub-command!" to player
  67. if arg-1 is "help":
  68. send "&bREPORTS ADMIN COMMANDS" to player
  69. send "&b/reports list [Player] &a-> &6Look at the players report stats!"
  70. send "&b/reports reset [Player] &a-> &6Resets the players report stats!"
  71. else:
  72. send "&cTo report someone, do &b/report [Player]" to player
Add Comment
Please, Sign In to add comment