Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on skript load:
- login to "NjM0NzQzOTk1NTU3MzQ3MzI4.Xam9cQ.kjOc8XX71wulK0a5QoZQ9EJzcq0" with name "Calixphoenix"
- set {serverchat} to channel with id "634743891937067009"
- set {unload} to true
- every 5 seconds:
- if {unload} is true:
- execute console command "/sk reload discordbot"
- set {unload} to false
- else:
- if {unload} is false:
- create embed:
- set the title of embed to title with text "Server"
- set the description of embed to "Serveren er oppe igen"
- set the thumbnail of embed to "https://cdn.discordapp.com/attachments/630042513629249546/631214843591917589/DanSkript-Discord.png"
- send the last created embed to channel with id "634743891937067009" with Calixphoenix
- delete {unload}
- on skript stop:
- create embed:
- set the title of embed to title with text "Server"
- set the description of embed to "Serveren er lukket ned"
- set the thumbnail of embed to "https://cdn.discordapp.com/attachments/630042513629249546/631214843591917589/DanSkript-Discord.png"
- send the last created embed to channel with id "634743891937067009" with Calixphoenix
- function report(p: player, pl: text, t: text):
- set {reporter.%{_p}%} to {_p}
- set {reported.%{_p}%} to {_pl}
- set {reason.%{_p}%} to {_t}
- if {reason.%{_p}%} is not "notset":
- set {uuid.%{reported.%{_p}%}%} to {_pl}'s uuid
- replace all "-" with "" in {uuid.%{reported.%{_p}%}%}
- create embed:
- set the title of embed to title with text "**%{reporter.%{_p}%}%** - ***Lobby*** "
- add split field named "Reported player" with value "%{reported.%{_p}%}%" to embed
- add split field named "Reason" with value "%{reason.%{_p}%}%" to embed
- set the thumbnail of embed to "https://crafatar.com/renders/head/%{uuid.%{reported.%{_p}%}%}%"
- set the timestamp of embed to now
- send the last created embed to channel with id "634743891937067009" with Calixphoenix
- delete {reporter.%{_p}%}
- delete {reported.%{_p}%}
- delete {reason.%{_p}%}
- if {reason.%{_p}%} is "notset":
- set
- command /report [<offline player>]:
- usage: /report (player)
- description: report a player what does not folow the rules
- permission: report.use
- permission message: &cYou have not permission to use report
- trigger:
- if arg-1 is not set:
- message "&9&lCL &8» &7You have forgot set the player, you wanne report."
- else:
- if arg-1 is "%player%":
- message "&9&lCL &8» &7You cant report your self"
- else:
- open virtual chest inventory with size 3 named "&c&lREPORT &8- &3&l%arg-1%" to player
- set {_n} to 0
- loop 15 times:
- format gui slot {_n} of player with blue stained glass pane named ""
- add 1 to {_n}
- format gui slot {_n} of player with white stained glass pane named ""
- add 1 to {_n}
- format gui slot 11 of player with book named "&c&lChat" with lore "&7Report &3%arg-1% &7for not follow our chat rules" to close then run function report(player, "%arg-1%", "chat")
- format gui slot 13 of player with feather named "&c&lHack" with lore "&7Report &3%arg-1% &7for hack on the server" to close then run function report(player, "%arg-1%", "hack")
- format gui slot 15 of player with feather named "&c&lOther" with lore "&7Report &3%arg-1% &7for something else" to close then run function report(player, "%arg-1%", "notset")
- on chat:
- if {report.%player%} is set:
- if "%message%" is "cancel":
- message "&9&lCL &8» &7You have cancel your report"
- delete {report.%player%}
- else:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement