Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /ban <offline player> [<text>]:
- permission: ban.player
- trigger:
- if arg 1 is set:
- if arg 2 is "-s":
- set {_player} to arg 1
- create new gui with id "ban" with virtual chest named " §7>-§4BAN§7-<" with 5 rows:
- format gui slot 4 with diamond sword named "§cBan %arg 1%"
- format gui slot 10 with bucket named "§cNon-malicious hacks §a(ADMITTED) 7 DAYS":
- if {%arg 1%::bans} is not set:
- execute player command "/tempban %{_player}% 7 -s You have been banned for 7 days due to Non-malicious hacks (ADMITTED). This ban CAN NOT be appealed"
- format gui slot 16 with water bucket named "§cNon-malicious hacks &a14 DAYS":
- if {%arg 1%::bans} is not set:
- execute player command "/tempban %{_player}% 14 -s You have been banned for 14 days due to Non-malicious hacks."
- format gui slot 22 with bedrock named "§cPERM BAN":
- if {%arg 1%::bans} is not set:
- execute player command "/tempban %{_player}% 10000 -s You have been PERM BANNED"
- format gui slot 28 with lava bucket named "§cNon-malicious hacks &a14 DAYS":
- if {%arg 1%::bans} is not set:
- execute player command "/tempban %{_player}% 15 -s You have been banned for 15 days due to Malicious hacks (ADMITTED). This ban CAN NOT be appealed"
- format gui slot 34 with lava bucket named "§cNon-malicious hacks &a14 DAYS":
- if {%arg 1%::bans} is not set:
- execute player command "/tempban %{_player}% 30 -s You have been banned for 30 days due to Malicious hacks."
- else:
- set {_player} to arg 1
- create new gui with id "ban" with virtual chest named " §7>-§4BAN§7-<" with 5 rows:
- format gui slot 4 with diamond sword named "§cBan %arg 1%"
- format gui slot 10 with bucket named "§cNon-malicious hacks §a(ADMITTED) 7 DAYS":
- if {%arg 1%::bans} is not set:
- execute player command "/tempban %{_player}% 7 You have been banned for 7 days due to Non-malicious hacks (ADMITTED). This ban CAN NOT be appealed"
- format gui slot 16 with water bucket named "§cNon-malicious hacks &a14 DAYS":
- if {%arg 1%::bans} is not set:
- execute player command "/tempban %{_player}% 14 You have been banned for 14 days due to Non-malicious hacks."
- format gui slot 22 with bedrock named "§cPERM BAN":
- if {%arg 1%::bans} is not set:
- execute player command "/tempban %{_player}% 10000 You have been PERM BANNED"
- format gui slot 28 with lava bucket named "§cNon-malicious hacks &a14 DAYS":
- if {%arg 1%::bans} is not set:
- execute player command "/tempban %{_player}% 15 You have been banned for 15 days due to Malicious hacks (ADMITTED). This ban CAN NOT be appealed"
- format gui slot 34 with lava bucket named "§cNon-malicious hacks &a14 DAYS":
- if {%arg 1%::bans} is not set:
- execute player command "/tempban %{_player}% 30 You have been banned for 30 days due to Malicious hacks."
- open gui with id "ban" to player
- else:
- send "/ban (player)" to player
- command /kick <player> <string>:
- permission: kick.player
- trigger:
- kick the player-argument due to "%arg 2%"
- command /tempban <offline player> <integer> <string>:
- permission: ban.player
- trigger:
- set {_test} to arg 1
- set {banned::%arg-1's uuid%} to true
- set {bantime::%arg-1's uuid%} to now
- set {banreason::%arg-1's uuid%} to "%arg 3%"
- if arg-3 contains "DoggoCheat":
- if arg-3 contains "speed":
- broadcast "&aDoggoCheat&7: %arg 1% has been banned for using speed hacks."
- loop arg-2 times:
- add 1 day to {bantime::%arg-1's uuid%}
- add 1 to {%arg-1's uuid%::bans}
- add ip of argument 1 to {banned::ips::*}
- execute console command "/kick %arg 1% &aDoggoCheat&7: You have been caught using speed hacks"
- else:
- loop arg-2 times:
- add 1 day to {bantime::%arg-1's uuid%}
- add 1 to {%arg-1's uuid%::bans}
- add ip of argument 1 to {banned::ips::*}
- execute console command "/kick %arg 1% %arg 3%"
- if arg-3 contains "-s":
- loop all players:
- if {rank.%loop-player%} is greater than or equal to 3:
- if {rank.%loop-player%} is less than 10:
- send "%arg 1% has been banned for %arg 2% days due to %arg 3%" to loop-player
- else:
- broadcast "%arg 1% has been banned for %arg 2% days due to %arg 3%"
- command /unban <offline player>:
- permission: pardon.player
- trigger:
- set {banned::%uuid of arg-1%} to false
- on join:
- set join message to ""
- set {_now} to now
- loop {banned::ips::*}:
- if player's ip is the same as loop-value:
- loop all players:
- if {rank.%loop-player%} is greater than or equal to 3:
- if {rank.%loop-player%} is less than 10:
- send "%player% has joined with a banned ip!"
- if {_now} is more than {bantime::%player's uuid%}:
- set {banned::%player's uuid%} to false
- if {banned::%player's uuid%} is true:
- kick the player due to " You will be unbanned on %{bantime::%player's uuid%}% GMT"
- on quit:
- if {banned::%player's uuid%} is true:
- set leave message to ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement