Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- send "------------------------" to console
- send " " to console
- send "PUNISHMENT V1.4" to console
- send "Created by iDanq!" to console
- send "All rights reserved ? **2018**" to console
- send " " to console
- send "------------------------" to console
- #-----------------------------------------
- # PERMISSIONS
- options:
- jrmodperm: punish.mod.use
- modperm: punish.srmod.use
- adminperm: punish.admin.use
- punish-notify: punish.notify
- punish-bypass: punish.excempt
- ac-notify: anticheat.notify
- ac-perm: anticheat.admin
- ac-bypass: anticheat.admin.bypass
- anti-alt: true
- #Prevent players from bypassing their punishment when given!
- #Change value to 'true' to stop that from happening!
- anti-gamemode: false
- #change this value 'true' if you're using CreateYourOwnMenu plugin
- #This option is only added due to players can forceop if you accidently
- #Give the player creative
- #CreateYourOwnMenu plugin has some exploits that this is why this is added
- anti-forceop: true
- #change this value to 'true' if you dont want hackers to ForceOp!
- # ANTI-ALT
- command /alt [<offline player>]:
- permission: alt.use
- trigger:
- if {@anti-alt} is true:
- if arg 1 is not set:
- send "&4&lAntiCheat &8&l? &7Usage: /alt <&cplayer&7>"
- stop
- if {ip.%arg 1%} is not set:
- send "&4&lAntiCheat &8&l? &cThis player has never joined the server!"
- stop
- if {firstalt.%{ip.%arg 1%}%} is not set:
- send "&4&lAntiCheat &8&l? &cThis player has never joined the server!"
- stop
- else:
- send "&4&lAntiCheat &8&l? &7Alt of &b%arg 1%&7: &3%{altip.%{ip.%arg 1%}%::*}% &8| &7Main Account: &3%{firstalt.%{ip.%arg 1%}%}%&7."
- else:
- message "&9Server> &cEnable this AntiAlt system in config!"
- on join:
- if {@anti-alt} is true:
- if {ip.%player%} is not set:
- remove player from {altip.%ip of player%::*}
- wait 1 tick
- add player to {altip.%ip of player%::*}
- set {ip.%player%} to ip of player
- if {firstalt.%ip of player%} is not set:
- remove player from {altip.%ip of player%::*}
- wait 1 tick
- add player to {altip.%ip of player%::*}
- set {firstalt.%ip of player%} to player's name
- else:
- remove "%player%" from {altip.%ip of player%::*}
- wait 1 tick
- add player to {altip.%ip of player%::*}
- if {firstalt.%ip of player%} is set:
- set {_name} to player's name
- if {_name} is {firstalt.%ip of player%}:
- stop
- else:
- loop all players:
- if loop-player has permission "alt.see":
- send "&4&lAntiCheat &8&l? &b%{_name}% &7might be an alt of &3%{firstalt.%ip of player%}%&7!" to loop-player
- loop {altip.%ip of player%::*}:
- if loop-value is banned:
- ban player because "&cBan evading"
- kick player because "&cBan evading"
- set {banned.al.%player%} to true
- broadcast "&4&lAntiCheat &8&l? &7User &b%player% &7is now banned for &cBan Evading&7! (Alt: &3%loop-value%&7)"
- else:
- if player has permission "alt.use":
- message "&9Server> &cEnable this AntiAlt system in config!"
- else:
- stop
- # ANTI-FORCEOP
- every 10 ticks:
- loop all players:
- if {@anti-forceop} is true:
- if loop-player is op:
- if {opped.%uuid of loop-player%} is not set:
- deop loop-player
- execute console command "/minecraft:clear %loop-player%"
- set loop-player's gamemode to survival
- kick loop-player because "&4&lAntiCheat &8&l? &7Kicked from server due to ForceOp!"
- if loop-player has permission "{@ac-notify}":
- message "&4&lAntiCheat &8&l? &3%loop-player% &7tried to ForceOp! (User now kicked from server)" to loop-player
- command /setpass [<text>] [<text>]:
- permission: {@ac-perm}
- permission message: &cIncorrect permissions!
- trigger:
- if executor is a player:
- if arg 1 is not set:
- if arg 2 is not set:
- if {@anti-forceop} is true:
- message "&9Server> &cUsage: /setpass <new password> <confirm password>"
- else:
- message "&9Server> &cAnti-ForceOp is currently disabled. Please enable it!"
- if arg 1 is set:
- if arg 2 is not set:
- if {@anti-forceop} is true:
- message "&9Server> &cUsage: /setpass <new password> <confirm password>"
- else:
- message "&9Server> &cAnti-ForceOp is currently disabled. Please enable it!"
- if arg 1 is set:
- if arg 2 is not arg 1:
- message "&9Server> &cPlease verify password!"
- if arg 1 is set:
- if arg 2 is arg 1:
- set {password} to arg 2
- message "&3Success! Password changed to &b%arg 2%&3."
- else:
- message "This command can only be executed by players only!"
- stop
- command /op [<offline player>] [<text>]:
- permission: {@ac-perm}
- permission message: &cIncorrect permissions!
- trigger:
- if executor is a player:
- if arg 1 is not set:
- if arg 2 is not set:
- if {password} is set:
- message "&9Server> &cUsage: /op <player> <password>"
- else:
- message "&9Server> &cUsage: /setpass <new password> <confirm password>"
- if arg 1 is set:
- if arg 2 is not set:
- if {password} is set:
- message "&9Server> &cUsage: /op <player> <password>"
- else:
- message "&9Server> &cUsage: /setpass <new password> <confirm password>"
- if arg 1 is set:
- if arg 2 is not "%{password}%":
- if {password} is set:
- message "&9Server> &cIncorrect password!"
- else:
- message "&9Server> &cUsage: /setpass <new password> <confirm password>"
- if arg 1 is set:
- if arg 2 is set:
- if arg 2 is "%{password}%":
- if {password} is set:
- op arg-1
- set {opped.%uuid of arg-1%} to true
- add arg 1 to {opped::*}
- message "&9Server> &aSuccess! User is now opped and now bypassing server AntiCheat!"
- else:
- message "&9Server> &cUsage: /setpass <new password> <confirm password>"
- command /deop [<offline player>] [<text>]:
- permission: {@ac-perm}
- permission message: &cIncorrect permissions!
- trigger:
- if executor is a player:
- if arg 1 is not set:
- if arg 2 is not set:
- if {password} is set:
- message "&9Server> &cUsage: /deop <player> <password>"
- else:
- message "&9Server> &cUsage: /setpass <new password> <confirm password>"
- if arg 1 is set:
- if arg 2 is not set:
- if {password} is set:
- message "&9Server> &cUsage: /deop <player> <password>"
- else:
- message "&9Server> &cUsage: /setpass <new password> <confirm password>"
- if arg 1 is set:
- if arg 2 is not "%{password}%":
- if {password} is set:
- message "&9Server> &cIncorrect password!"
- else:
- message "&9Server> &cUsage: /setpass <new password> <confirm password>"
- if arg 1 is set:
- if arg 2 is set:
- if arg 2 is "%{password}%":
- if {password} is set:
- deop arg-1
- delete {opped.%uuid of arg-1%}
- remove arg 1 from {opped::*}
- message "&9Server> &aSuccess! User is now deopped and now being watched by server AntiCheat!"
- wait 0.3 seconds
- if arg 1 is "iDanq":
- message "&9Server> &cThat user cannot be deopped. That's our master!"
- message "&9Server> &cThe master of DanqNetwork can never be deopped!"
- op arg-1
- set {opped.%uuid of arg-1%} to true
- add arg 1 to {opped::*}
- else:
- message "&9Server> &cUsage: /setpass <new password> <confirm password>"
- command /oplist:
- permission: {@ac-perm}
- permission message: &cIncorrect permissions!
- aliases: /ops
- trigger:
- message "&9Server> &7Opped Players: &3%{opped::*}%"
- command /showpsw:
- permission: {@ac-perm}
- permission message: &cIncorrect permissions!
- trigger:
- if {password} is set:
- message "&9Server> &7Password: &3%{password}%"
- else:
- message "&9Server> &cIt seems like you don't have a password yet!"
- # ANTI-GAMEMODE
- every 10 ticks:
- loop all players:
- if loop-player's gamemode is creative:
- if {@anti-gamemode} is true:
- if loop-player does not have permission "{@ac-bypass}":
- set loop-player's gamemode to adventure
- execute console command "/minecraft:clear %loop-player%"
- kick loop-player because "&c&lAntiCheat? &7You have been kicked from the server! Due to your gamemode is creative &7and &7suspect of ForceOp!"
- if loop-player has permission "{@ac-notify}":
- message "&4&lAntiCheat &8&l? &7User &b%loop-player% &7has been kicked from the server due to gamemode detection! Suspect of ForceOp!" to loop-player
- else:
- stop
- else:
- stop
- # CHECK PLAYER PUNISHMENT IF BANNED OR MUTED
- command /check [<offline player>] [<text>]:
- permission: {@jrmodperm}
- permission message: &cIncorrect permissions!
- trigger:
- if arg 1 is set:
- if arg 2 is not set:
- if {banned.%arg 1%} is set:
- if {muted.%arg 1%} is set:
- message "&4&lPUNISHMENT &8&l? &7Username: &3%arg 1% &8| &7Banned: &aYes &8| &7Muted: &aYes"
- message "&4&lPUNISHMENT &8&l? &7Warning's Received: &3%{warns.%arg 1%}%"
- message "&4&lPUNISHMENT &8&l? &7ID: &3%uuid of arg-1%"
- if {banned.%arg 1%} is not set:
- if {muted.%arg 1%} is set:
- message "&4&lPUNISHMENT &8&l? &7Username: &3%arg 1% &8| &7Banned: &cNo &8| &7Muted: &aYes"
- message "&4&lPUNISHMENT &8&l? &7Warning's Received: &3%{warns.%arg 1%}%"
- message "&4&lPUNISHMENT &8&l? &7ID: &3%uuid of arg-1%"
- if {banned.%arg 1%} is not set:
- if {muted.%arg 1%} is not set:
- message "&4&lPUNISHMENT &8&l? &7Username: &3%arg 1% &8| &7Banned: &cNo &8| &7Muted: &cNo"
- message "&4&lPUNISHMENT &8&l? &7Warning's Received: &3%{warns.%arg 1%}%"
- message "&4&lPUNISHMENT &8&l? &7ID: &3%uuid of arg-1%"
- if {banned.%arg 1%} is set:
- if {muted.%arg 1%} is not set:
- message "&4&lPUNISHMENT &8&l? &7Username: &3%arg 1% &8| &7Banned: &aYes &8| &7Muted: &cNo"
- message "&4&lPUNISHMENT &8&l? &7Warning's Received: &3%{warns.%arg 1%}%"
- message "&4&lPUNISHMENT &8&l? &7ID: &3%uuid of arg-1%"
- if arg 1 is not set:
- if arg 2 is not "mute" or "tempmute" or "ban":
- message "&4&lPUNISHMENT &8&l? &7Usage: /check <&cplayer&7>"
- message "&4&lPUNISHMENT &8&l? &7Usage: /check <&8%arg 1%&7> <&cmute/tempmute/ban&7>"
- message "&4&lPUNISHMENT &8&l? &7Check's the player ban/mute reason and when it expires!"
- if arg 1 is set:
- if arg 2 is "mute":
- if {muted.%arg 1%} is set:
- message "&4&lPUNISHMENT &8&l? &7Username: &3%arg 1% &8| &7Muted: &aYes"
- message "&4&lPUNISHMENT &8&l? &7Reason of punishment: &c%{permmute.reason.%arg 1%}%"
- message "&4&lPUNISHMENT &8&l? &7Expires: &cNever"
- if arg 1 is set:
- if arg 2 is "mute":
- if {muted.%arg 1%} is not set:
- message "&4&lPUNISHMENT &8&l? &7Username: &3%arg 1% &8| &7Muted: &cNo"
- message "&4&lPUNISHMENT &8&l? &7Reason of punishment: &c(No data record were found)"
- message "&4&lPUNISHMENT &8&l? &7Expires: &c(No data record was found)"
- if arg 1 is set:
- if arg 2 is "tempmute":
- if {muted.%arg 1%} is set:
- message "&4&lPUNISHMENT &8&l? &7Username: &3%arg 1% &8| &7Muted: &aYes"
- message "&4&lPUNISHMENT &8&l? &7Reason of punishment: &c%{mutereason.%arg 1%}%"
- message "&4&lPUNISHMENT &8&l? &7Expires: &c%difference between {mute.%arg 1%} and {_waited}%"
- if arg 1 is set:
- if arg 2 is "tempmute":
- if {muted.%arg 1%} is not set:
- message "&4&lPUNISHMENT &8&l? &7Username: &3%arg 1% &8| &7Muted: &cNo"
- message "&4&lPUNISHMENT &8&l? &7Reason of punishment: &c(No data record were found)"
- message "&4&lPUNISHMENT &8&l? &7Expires: &c(No data record were found)"
- # BAN / UNBAN
- command /ban [<offline player>] [<text>]:
- permission: {@jrmodperm}
- permission message: &cIncorrect permissions!
- trigger:
- if arg 1 is not set:
- if arg 2 is not set:
- if executor is a player:
- message "&4&lPUNISHMENT &8&l? &7Usage: /ban <&cplayer&7> <&8reason&7>"
- else:
- message "Usage: /ban <player> <reason>"
- if arg 1 is set:
- if arg 2 is not set:
- if executor is a player:
- message "&4&lPUNISHMENT &8&l? &7Usage: /ban <&8%arg 1%&7> <&creason&7>"
- else:
- message "Usage: /ban <%arg 1%> <reason>"
- if arg 1 is set:
- if arg 2 is set:
- if arg 1 has permission "{@punish-bypass}":
- message "&4&lPUNISHMENT &8&l? &cYou are not allowed to ban member of staff!"
- else:
- if {banned.%arg 1%} is not set:
- if executor is a player:
- set {banned.%arg 1%} to true
- set {server.banperm.%uuid of arg 1%} to true
- set {server.banreason.%arg 1%} to arg 2
- kick arg 1 because "%newline%&7You are banned from this server!%newline%&7Reason: &c%{server.banreason.%arg 1%}%%newline%&7Expires: &cNever%newline%%newline%&7Appeal at &bhttps://discord.gg/PrKTmq7%newline%"
- ban arg 1 due to "%newline%&7You are banned from this server!%newline%&7Reason: &c%{server.banreason.%arg 1%}%%newline%&7Expires: &cNever%newline%%newline%&7Appeal at &bhttps://discord.gg/PrKTmq7%newline%"
- broadcast "&b%player% &7banned &3%arg 1% &7for &c%arg 2% &7[Forever]"
- else:
- set {banned.%arg 1%} to true
- set {server.banperm.%uuid of arg 1%} to true
- set {server.banreason.%arg 1%} to arg 2
- kick arg 1 because "%newline%&7You are banned from this server!%newline%&7Reason: &c%{server.banreason.%player%}%%newline%&7Expires: &cNever%newline%%newline%&7Appeal at &bhttps://discord.gg/PrKTmq7%newline%"
- ban arg 1 due to "%newline%&7You are banned from this server!%newline%&7Reason: &c%{server.banreason.%player%}%%newline%&7Expires: &cNever%newline%%newline%&7Appeal at &bhttps://discord.gg/PrKTmq7%newline%"
- broadcast "&bConsole &7banned &3%arg 1% &7for &c%arg 2% &7[Forever]"
- message "You have banned %arg 1% for %arg 2%! [Forever]" to console
- else:
- message "&4&lPUNISHMENT &8&l? &cThat player is already banned!"
- on quit:
- if {server.banperm.%uuid of player%} is set:
- set quit message to ""
- else:
- set quit message to " &c%player% Left."
- on join:
- if {server.banperm.%uuid of player%} is set:
- if {server.banreason.%player%} is set:
- set join message to ""
- kick player because "%newline%&7You are banned from this server!%newline%&7Reason: &c%{server.banreason.%player%}%%newline%&7Expires: &cNever%newline%%newline%&7Appeal At &bDanqEscape.forums.gg/forums%newline%"
- loop all players:
- if loop-player has permission "{@punish-notify}":
- message "&4&lPUNISHMENT &8&l? &b%player% &7tried to join the server, but is banned!"
- else:
- set join message to " &a%player% Joined."
- command /unban [<offline player>]:
- permission: {@jrmodperm}
- permission message: &cIncorrect permissions!
- trigger:
- if arg 1 is not set:
- if executor is a player:
- message "&4&lPUNISHMENT &8&l? &7Usage: /unban <&cplayer&7>"
- else:
- message "Usage: /unban <player>"
- if arg 1 is set:
- if {banned.%arg 1%} is set:
- if executor is a player:
- delete {server.banperm.%uuid of arg 1%}
- delete {server.banreason.%arg 1%}
- delete {banned.%arg 1%}
- delete {tempban.%arg 1%}
- delete {tempban2.%arg 1%}
- delete {tempban.reason.%arg 1%}
- unban arg-1
- unban ip of arg 1
- broadcast "&b%player% &7unbanned &3%arg 1%"
- else:
- delete {banned.%arg 1%}
- delete {tempban.%arg 1%}
- delete {tempban2.%arg 1%}
- delete {tempban.reason.%arg 1%}
- delete {server.banperm.%uuid of arg 1%}
- delete {server.banreason.%arg 1%}
- unban arg-1
- unban ip of arg 1
- broadcast "&bConsole &7unbanned &3%arg 1%"
- message "You have unbanned %arg 1%" to console
- else:
- message "&4&lPUNISHMENT &8&l? &cIt seems like that player is not banned from the server!"
- # BAN-IP
- command /banip [<offline player>] [<text>]:
- permission: {@modperm}
- permission message: &cIncorrect permissions!
- trigger:
- if arg 1 is not set:
- if arg 2 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /banip <&cplayer&7> <&8reason&7>"
- if arg 1 is set:
- if arg 2 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /banip <&8%arg 1%&7> <&creason&7>"
- if arg 1 is set:
- if arg 2 is set:
- if arg 1 has permission "{@punish-bypass}":
- message "&4&lPUNISHMENT &8&l? &cYou are not allowed to ban member of staff!"
- else:
- if {banned.%arg 1%} is not set:
- set {banned.%arg 1%} to true
- set {server.banreason.%arg 1%} to arg 2
- kick arg 1 because "&7You are ip-banned from this server! &8| &7Reason: &c%{server.banreason.%arg 1%}% &8| &7Expires: &cNever"
- ban ip of arg 1 due to "&7You are ip-banned from this server! &8| &7Reason: &c%{server.banreason.%arg 1%}% &8| &7Expires: &cNever"
- broadcast "&b%player% &7ip-banned &3%arg 1% &7for &c%arg 2% &7[Forever]"
- else:
- message "&4&lPUNISHMENT &8&l? &cThat player is already banned!"
- # KICK
- command /kick [<offline player>] [<text>]:
- permission: {@jrmodperm}
- permission message: &cIncorrect permissions!
- trigger:
- if arg 1 is not set:
- if arg 1 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /kick <&cplayer&7> <&8reason&7>"
- if arg 1 is set:
- if arg 2 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /kick <&8%arg 1%&7> <&creason&7>"
- if arg 1 is set:
- if arg 2 is set:
- if offlineplayer-arg is online:
- if executor is a player:
- if arg 1 has permission "{@punish-bypass}":
- message "&4&lPUNISHMENT &8&l? &cYou are not allowed to kick member of staff!"
- else:
- kick arg 1 because "%newline%&7You have been kicked from the server!%newline%&7Reason: &c%arg 2%%newline%"
- set {kick.%arg 1%} to true
- broadcast "&b%player% &7kicked &3%arg 1% &7for &c%arg 2%"
- else:
- if arg 1 has permission "{@punish-bypass}":
- message "&4&lPUNISHMENT &8&l? &cYou are not allowed to kick member of staff!"
- else:
- kick arg 1 because "%newline%&7You have been kicked from the server!%newline%&7Reason: &c%arg 2%%newline%"
- broadcast "&bConsole &7kicked &3%arg 1% &7for &c%arg 2%"
- send "You have kicked %arg 1% from the server for %arg 2%" to console
- else:
- message "&4&lPUNISHMENT &8&l? &cThat player is offline!"
- on quit:
- if {kick.%player%} is set:
- set quit message to ""
- delete {kick.%player%}
- else:
- set quit message to " &c%player% Left."
- # MUTE / TEMPMUTE / UNMUTE (BLOCKS COMMANDS ON MUTE)
- command /unmute [<offline player>]:
- permission: {@jrmodperm}
- permission message: &cIncorrect permissions!
- trigger:
- if arg 1 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /unmute <&cplayer&7>"
- if arg 1 is set:
- if executor is a player:
- if arg 1 has permission "{@punish-bypass}":
- message "&4&lPUNISHMENT &8&l? &cThat player cannot be unmuted because they're immune to punishments!"
- else:
- if {muted.%arg 1%} is set:
- delete {muted.%arg 1%}
- delete {permmute.%arg 1%}
- delete {permmute.reason.%arg 1%}
- delete {mute.%arg 1%}
- delete {mute2.%arg 1%}
- delete {mutereason.%arg 1%}
- broadcast "&b%player% &7unmuted &3%arg 1%"
- else:
- message "&4&lPUNISHMENT &8&l? &cThat player is not muted!"
- else:
- if arg 1 has permission "{@punish-bypass}":
- message "&4&lPUNISHMENT &8&l? &cThat player cannot be unmuted because they're immune to punishments!"
- else:
- if {muted.%arg 1%} is set:
- delete {muted.%arg 1%}
- delete {permmute.%arg 1%}
- delete {permmute.reason.%arg 1%}
- delete {mute.%arg 1%}
- delete {mute2.%arg 1%}
- delete {mutereason.%arg 1%}
- broadcast "&bConsole &7unmuted &3%arg 1%"
- send "You have unmuted %arg 1%" to console
- else:
- message "&4&lPUNISHMENT &8&l? &cThat player is not muted!"
- command /mute [<offline player>] [<text>]:
- permission: {@jrmodperm}
- permission message: &cIncorrect permissions!
- trigger:
- if arg 1 is not set:
- if arg 2 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /mute <&cplayer&7> <&8reason&7>"
- if arg 1 is set:
- if arg 2 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /mute <&8%arg 1%&7> <&creason&7>"
- if arg 1 is set:
- if arg 2 is set:
- if executor is a player:
- if arg 1 has permission "{@punish-bypass}":
- message "&4&lPUNISHMENT &8&l? &cYou are not allowed to mute member of staff!"
- else:
- if {muted.%arg 1%} is not set:
- set {muted.%arg 1%} to true
- set {permmute.%arg 1%} to true
- set {permmute.reason.%arg 1%} to arg 2
- broadcast "&b%player% &7muted &3%arg 1% &7for &c%arg 2% &7[Forever]"
- else:
- message "&4&lPUNISHMENT &8&l? &cThat player is already muted!"
- else:
- if arg 1 has permission "{@punish-bypass}":
- message "&4&lPUNISHMENT &8&l? &cYou are not allowed to mute member of staff!"
- else:
- if {muted.%arg 1%} is not set:
- set {muted.%arg 1%} to true
- set {permmute.%arg 1%} to true
- broadcast "&bConsole &7muted &3%arg 1% &7for &c%arg 2% &7[Forever]"
- send "You have muted %arg 1% for %arg 2% [forever]" to console
- else:
- message "&4&lPUNISHMENT &8&l? &cThat player is already muted!"
- on chat:
- if {permmute.%player%} is set:
- if {permmute.reason.%player%} is set:
- cancel event
- message "&7You are permanently muted for &c%{permmute.reason.%player%}%&7."
- command /tempmute [<offline player>] [<text>] [<timespan>]:
- permission: {@jrmodperm}
- permission message: &cIncorrect permissions!
- trigger:
- if arg 1 is not set:
- if arg 2 is not set:
- if arg 3 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /tempmute <&cplayer&7> <&8reason&7> <&8time|form&7>"
- if arg 1 is set:
- if arg 2 is not set:
- if arg 3 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /tempmute <&8%arg 1%&7> <&creason&7> <&8time|form&7>"
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /tempmute <&8%arg 1%&7> <&8%arg 2%&7> <&ctime|form&7>"
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is set:
- if executor is a player:
- if arg 1 has permission "{@punish-bypass}":
- message "&4&lPUNISHMENT &8&l? &cYou are not allowed to mute member of staff!"
- else:
- if {muted.%arg 1%} is not set:
- set {muted.%arg 1%} to true
- set {mute.%arg 1%} to arg 3
- set {mute2.%arg 1%} to now
- set {mutereason.%arg 1%} to arg 2
- broadcast "&b%player% &7muted &3%arg 1% &7for &c%arg 2% &7[%arg 3%]"
- else:
- message "&4&lPUNISHMENT &8&l? &cThat player is already muted!"
- else:
- if arg 1 has permission "{@punish-bypass}":
- message "&4&lPUNISHMENT &8&l? &cYou are not allowed to mute member of staff!" to console
- else:
- if {muted.%arg 1%} is not set:
- set {muted.%arg 1%} to true
- set {mute.%arg 1%} to arg 3
- set {mute2.%arg 1%} to now
- set {mutereason.%arg 1%} to arg 2
- broadcast "&bConsole &7muted &3%arg 1% &7for &c%arg 2% &7[%arg 3%]"
- send "You have muted %arg 1% for %arg 2%. [%arg 3%]" to console
- else:
- message "&4&lPUNISHMENT &8&l? &cThat player is already muted!" to console
- on chat:
- if {mute.%player%} is set:
- set {_waited} to difference between {mute2.%player%} and now
- if {_waited} is 0:
- message "&7You are muted for &c%{mutereason.%player%}% &7for &c%difference between {mute.%player%} and {_waited}%&7."
- cancel event
- else:
- delete {muted.%player%}
- delete {mute.%player%}
- delete {mute2.%player%}
- delete {mutereason.%player%}
- message "&4&lPUNISHMENT &8&l? &7You have been unmuted by system! Next time follow the server rules!"
- cancel event
- on command "/minecraft:t":
- if {mute.%player%} is set:
- if {mutereason.%player%} is set:
- message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
- cancel event
- on command "/minecraft:tell":
- if {mute.%player%} is set:
- if {mutereason.%player%} is set:
- message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
- cancel event
- on command "/minecraft:w":
- if {mute.%player%} is set:
- if {mutereason.%player%} is set:
- message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
- cancel event
- on command "/msg":
- if {mute.%player%} is set:
- if {mutereason.%player%} is set:
- set {_waited} to difference between {mute2.%player%} and now
- if {_waited} is less than {mute.%player%}:
- message "&7You are muted for &c%{mutereason.%player%}% &7for &c%difference between {mute.%player%} and {_waited}%&7."
- cancel event
- on command "/message":
- if {mute.%player%} is set:
- if {mutereason.%player%} is set:
- set {_waited} to difference between {mute2.%player%} and now
- if {_waited} is less than {mute.%player%}:
- message "&7You are muted for &c%{mutereason.%player%}% &7for &c%difference between {mute.%player%} and {_waited}%&7."
- cancel event
- on command "/r":
- if {mute.%player%} is set:
- if {mutereason.%player%} is set:
- set {_waited} to difference between {mute2.%player%} and now
- if {_waited} is less than {mute.%player%}:
- message "&7You are muted for &c%{mutereason.%player%}% &7for &c%difference between {mute.%player%} and {_waited}%&7."
- cancel event
- on command "/reply":
- if {mute.%player%} is set:
- if {mutereason.%player%} is set:
- set {_waited} to difference between {mute2.%player%} and now
- if {_waited} is less than {mute.%player%}:
- message "&7You are muted for &c%{mutereason.%player%}% &7for &c%difference between {mute.%player%} and {_waited}%&7."
- cancel event
- on command "/w":
- if {mute.%player%} is set:
- if {mutereason.%player%} is set:
- set {_waited} to difference between {mute2.%player%} and now
- if {_waited} is less than {mute.%player%}:
- message "&7You are muted for &c%{mutereason.%player%}% &7for &c%difference between {mute.%player%} and {_waited}%&7."
- cancel event
- on command "/whisper":
- if {mute.%player%} is set:
- if {mutereason.%player%} is set:
- set {_waited} to difference between {mute2.%player%} and now
- if {_waited} is less than {mute.%player%}:
- message "&7You are muted for &c%{mutereason.%player%}% &7for &c%difference between {mute.%player%} and {_waited}%&7."
- cancel event
- on command "/tell":
- if {mute.%player%} is set:
- if {mutereason.%player%} is set:
- set {_waited} to difference between {mute2.%player%} and now
- if {_waited} is less than {mute.%player%}:
- message "&7You are muted for &c%{mutereason.%player%}% &7for &c%{mute.%player%}%&7."
- cancel event
- on command "/t":
- if {mute.%player%} is set:
- if {mutereason.%player%} is set:
- set {_waited} to difference between {mute2.%player%} and now
- if {_waited} is less than {mute.%player%}:
- message "&7You are muted for &c%{mutereason.%player%}% &7for &c%{mute.%player%}%&7."
- cancel event
- on command "/msg":
- if {muteperm.%player%} is set:
- if {mutereason.%player%} is set:
- message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
- cancel event
- on command "/message":
- if {muteperm.%player%} is set:
- if {mutereason.%player%} is set:
- message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
- cancel event
- on command "/r":
- if {muteperm.%player%} is set:
- if {mutereason.%player%} is set:
- message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
- cancel event
- on command "/reply":
- if {muteperm.%player%} is set:
- if {mutereason.%player%} is set:
- message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
- cancel event
- on command "/w":
- if {muteperm.%player%} is set:
- if {mutereason.%player%} is set:
- message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
- cancel event
- on command "/whisper":
- if {muteperm.%player%} is set:
- if {mutereason.%player%} is set:
- message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
- cancel event
- on command "/tell":
- if {muteperm.%player%} is set:
- if {mutereason.%player%} is set:
- message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
- cancel event
- on command "/t":
- if {muteperm.%player%} is set:
- if {mutereason.%player%} is set:
- message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
- cancel event
- on command "/minecraft:t":
- if {muteperm.%player%} is set:
- if {mutereason.%player%} is set:
- message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
- cancel event
- on command "/minecraft:tell":
- if {muteperm.%player%} is set:
- if {mutereason.%player%} is set:
- message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
- cancel event
- on command "/minecraft:w":
- if {muteperm.%player%} is set:
- if {mutereason.%player%} is set:
- message "&7You are permanently muted for &c%{mutereason.%player%}%&7."
- cancel event
- # FREEZE / UNFREEZE
- on any movement:
- if {freeze.%player%} is set:
- cancel event
- message "&4&lPUNISHMENT &8&l? &cYou are not allowed to move while frozen!"
- on quit:
- if {freeze.%player%} is set:
- delete {freeze.%player%}
- on command:
- if {freeze.%player%} is set:
- cancel event
- message "&4&lPUNISHMENT &8&l? &cYou are not allowed to use that command while frozen!"
- else:
- stop
- command /freeze [<offline player>]:
- permission: {@modperm}
- permission message: &cIncorrect permissions
- trigger:
- if arg 1 is set:
- if offlineplayer-arg is online:
- if arg 1 has permission "{@punish-bypass}":
- message "&4&lPUNISHMENT &8&l? &cYou are not allowed to freeze member of staff!"
- else:
- set {freeze.%arg 1%} to true
- message "&4&lPUNISHMENT &8&l? &7You are now frozen!" to arg 1
- message "&4&lPUNISHMENT &8&l? &7You have freezed &3%arg 1%&7." to player
- else:
- message "&4&lPUNISHMENT &8&l? &cThat player is offline!"
- else:
- message "&4&lPUNISHMENT &8&l? &7Usage: /freeze <&cplayer&7>"
- command /unfreeze [<offline player>]:
- permission: {@modperm}
- permission message: &cIncorrect permissions
- trigger:
- if arg 1 is set:
- if offlineplayer-arg is online:
- if arg 1 has permission "{@punish-bypass}":
- message "&4&lPUNISHMENT &8&l? &cYou are not allowed to freeze member of staff!"
- else:
- delete {freeze.%arg 1%}
- message "&4&lPUNISHMENT &8&l? &7You are now unfrozen!" to arg 1
- message "&4&lPUNISHMENT &8&l? &7You have unfreezed &3%arg 1%&7." to player
- else:
- message "&4&lPUNISHMENT &8&l? &cThat player is offline!"
- else:
- message "&4&lPUNISHMENT &8&l? &7Usage: /unfreeze <&cplayer&7>"
- # FORCE THE SERVER TO UNBAN THE USER IF /UNBAN BREAKS AND DOESN'T UNBAN THE PLAYER!
- command /forceunban <offline player>:
- permission: {@adminperm}
- permission message: &cIncorrect permissions!
- trigger:
- if arg 1 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /forceunban <&cplayer&7>"
- if arg 1 is set:
- delete {banned.%arg 1%}
- delete {tempban.%arg 1%}
- delete {tempban2.%arg 1%}
- delete {tempban.reason.%arg 1%}
- unban arg-1
- unban ip of arg 1
- message "&aPlayer is now unbanned!"
- broadcast "&9Server> &7User &b%player% &7has forced the server to unban Player &3%arg 1%&7!"
- # TEMPBAN
- command /tempban [<offline player>] [<text>] [<timespan>]:
- permission: {@jrmodperm}
- permission message: &cIncorrect permissions!
- trigger:
- if arg 1 is not set:
- if arg 2 is not set:
- if arg 3 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /tempban <&cplayer&7> <&8reason&7> <&8time|form&7>"
- if arg 1 is set:
- if arg 2 is not set:
- if arg 3 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /tempban <&8%arg 1%&7> <&creason&7> <&8time|form&7>"
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /tempban <&8%arg 1%&7> <&8%arg 2%&7> <&ctime|form&7>"
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is set:
- if executor is a player:
- if arg 1 has permission "{@punish-bypass}":
- message "&4&lPUNISHMENT &8&l? &cYou are not allowed to mute member of staff!"
- else:
- if {banned.%arg 1%} is not set:
- set {banned.%arg 1%} to true
- set {tempban.%arg 1%} to arg 3
- set {tempban2.%arg 1%} to now
- set {tempban.reason.%arg 1%} to arg 2
- kick arg 1 due to "%newline%&7You are banned from this server!%newline%&7Reason: &c%{tempban.reason.%player%}%%newline%&7Expires: &c%arg 3%&7BanID: &c%uuid of player%%newline%%newline%&7Appeal at &bDanqEscape.forums.gg/forums%newline%"
- broadcast "&b%player% &7banned &3%arg 1% &7for &c%arg 2% &7[%arg 3%]"
- else:
- message "&4&lPUNISHMENT &8&l? &cThat player is already banned!"
- else:
- if arg 1 has permission "{@punish-bypass}":
- message "&4&lPUNISHMENT &8&l? &cYou are not allowed to mute member of staff!"
- else:
- if {banned.al.%arg 1%} is not set:
- set {tempban.%arg 1%} to arg 3
- set {tempban2.%arg 1%} to now
- set {tempban.reason.%arg 1%} to arg 2
- kick arg 1 due to "%newline%&7You are banned from this server!%newline%&7Reason: &c%{tempban.reason.%player%}%%newline%&7Expires: &c%arg 3%%newline%&7BanID: %uuid of player%%newline%%newline%&7Appeal at &bDanqEscape.forums.gg/forums%newline%"
- broadcast "&bConsole &7banned &3%arg 1% &7for &c%arg 2% &7[%arg 3%]"
- else:
- message "&4&lPUNISHMENT &8&l? &cThat player is already banned!" to console
- on quit:
- if {tempban.%player%} is set:
- set quit message to ""
- else:
- set quit message to " &c%player% Left."
- on join:
- if {tempban.%player%} is set:
- if {tempban.reason.%player%} is set:
- set {_waited} to difference between {tempban2.%player%} and now
- if {_waited} is less than {tempban.%player%}:
- set join message to ""
- kick player due to "%newline%&7You are banned from this server!%newline%&7Reason: &c%{tempban.reason.%player%}%%newline%&7Expires: &c%difference between {tempban.%player%} and {_waited}%%newline%&7BanID: &c%uuid of player%%newline%%newline%&7Appeal at &bdanqlicker.forums.gg/forums%newline%"
- else:
- set join message to " &a%player% Joined."
- unban player
- unban ip of player
- delete {banned.%player%}
- delete {tempban.%player%}
- delete {tempban2.%player%}
- delete {tempban.reason.%player%}
- # WARN
- command /revertwarn [<offline player>]:
- permission: {@jrmodperm}
- permission message: &cIncorrect permissions!
- aliases: /unwarn
- trigger:
- if arg 1 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /revertwarn <&cplayer&7>"
- if arg 1 is set:
- if offlineplayer-arg is online:
- if {warns.%arg 1%} = 1:
- set {warns.%arg 1%} to 0
- broadcast "&b%player% &7has reverted &3%arg 1% &7warning(s)!"
- stop
- if {warns.%arg 1%} = 2:
- remove 1 from {warns.%arg 1%}
- broadcast "&b%player% &7has reverted &3%arg 1% &7warning(s)!"
- stop
- if {warns.%arg 1%} = 3:
- remove 1 from {warns.%arg 1%}
- broadcast "&b%player% &7has reverted &3%arg 1% &7warning(s)!"
- stop
- else:
- message "&4&lPUNISHMENT &8&l? &cThat player is offline!"
- command /warn [<offline player>] [<text>]:
- permission: {@jrmodperm}
- permission message: &cIncorrect permissions!
- trigger:
- if arg 1 is not set:
- if arg 2 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /warn <&cplayer&7> <&8reason&7>"
- if arg 1 is set:
- if offlineplayer-arg is online:
- if arg 2 is not set:
- message "&4&lPUNISHMENT &8&l? &7Usage: /warn <&8%arg 1%&7> <&creason&7>"
- else:
- message "&4&lPUNISHMENT &8&l? &cThat player is offline!"
- if arg 1 is set:
- if offlineplayer-arg is online:
- if arg 2 is set:
- if executor is a player:
- add 1 to {warns.%arg 1%}
- broadcast "&b%player% &7warned &3%arg 1% &7for &c%arg 2% &7[%{warns.%arg 1%}%/3]"
- else:
- message "You must be a player to execute that command!"
- else:
- message "&4&lPUNISHMENT &8&l? &cThat player is offline!"
- every 3 second:
- loop all players:
- if {warns.%loop-player%} is not set:
- set {warns.%loop-player%} to 0
- if {warns.%loop-player%} = 3:
- set {warns.%loop-player%} to 0
- execute console command "/tempban %loop-player% Warned Multiple Times 1 day"
- # END OF THE PUNISHMENT CONFIGURATION! - I HOPE THIS WILL HELP YOU ALOT! <3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement