Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #14InstaPvP Punishments (Developed by Distqelth)
- #----------------OPTIONS AND NODE LIST--------------------
- Options:
- {Banned::%uuid of player%} = false
- {Muted::%uuid of player%} = false
- #bh.use
- #mh.use
- #cb.use
- #cm.use
- #tb.use
- #b.use
- #m.use
- #tm.use
- #um.use
- #ub.use
- #-------------------HISTORY AND CLEAR----------------------
- command /bans [<offline player>]:
- permission: bh.use
- permission message: No Permission
- trigger:
- if arg 1 is not set:
- send "&aUsage: /bans (player)"
- stop
- if size of {bans::%uuid of arg 1%::*} is 0:
- send "&a&l%arg 1% &ahas no ban history"
- stop
- send "&7Bans:"
- loop {bans::%uuid of arg 1%::*}:
- send "%loop-value%"
- command /mutes [<offline player>]:
- permission: mh.use
- permission message: No Permission
- trigger:
- if arg 1 is not set:
- send "&aUsage: /mutes (player)"
- stop
- if size of {mutes::%uuid of arg 1%::*} is 0:
- send "&a&l%arg 1% &ahas no mute history"
- stop
- send "&7Mutes:"
- loop {mutes::%uuid of arg 1%::*}:
- send "%loop-value%"
- command /clearbans [<offline player>]:
- permission: cb.use
- permission message: No Permission
- trigger:
- if arg 1 is not set:
- send "&aUsage: /clearbans (player)"
- stop
- if size of {bans::%uuid of arg 1%::*} is 0:
- send "&a&l%arg 1% &ahas no ban history"
- stop
- delete {bans::%uuid of arg 1%::*}
- send "&aBan history for &a&l%arg 1% &ahas been cleared"
- command /clearmutes [<offline player>]:
- permission: cm.use
- permission message: No Permission
- trigger:
- if arg 1 is not set:
- send "&aUsage: /clearmutes (player)"
- stop
- if size of {mutes::%uuid of arg 1%::*} is 0:
- send "&a&l%arg 1% &ahas no mute history"
- stop
- delete {mutes::%uuid of arg 1%::*}
- send "&aMute history for &a&l%arg 1% &ahas been cleared"
- #---------------------BANS----------------------
- command /tempban [<offline player>] [<string>] [<timespan>]:
- permission: tb.use
- permission message: No Permission
- trigger:
- if arg 1 or arg 2 or arg 3 is not set:
- send "&aUsage: /tempban (player) (reason) (time - eg. 30 days, 2 weeks)"
- stop
- if {Banned::%uuid of arg 1%} is true:
- send "&a&l%arg 1% &ais already banned"
- stop
- set {Banned::%uuid of arg 1%} to true
- kick arg 1 because "&cYou have been banned%nl%&aStaff Member: &a&l%executor%%nl%&aTime: &a&l%arg 3%%nl%&aReason: &a&l%arg 2%%nl%%nl%&eIf your ban is permanent, appeal at: 14instapvp.namelesshosting.com"
- ban arg 1 because "&cYou have been banned%nl%&aStaff Member: &a&l%executor%%nl%&aTime: &a&l%arg 3%%nl%&aReason: &a&l%arg 2%%nl%%nl%&eIf your ban is permanent, appeal at: 14instapvp.namelesshosting.com"
- add arg 2 to {bans::%uuid of arg 1%::*}
- broadcast "&a&l%arg 1% &ahas been &a<emp-banned &aby &a&l%executor% &afor &a&l%arg 3%"
- wait arg 3
- unban arg 1
- command /stempban [<offline player>] [<string>] [<timespan>]:
- permission: tb.use
- permission message: No Permission
- trigger:
- if arg 1 or arg 2 or arg 3 is not set:
- send "&aUsage: /stempban (player) (reason) (time - eg. 30 days, 2 weeks)"
- stop
- if {Banned::%uuid of arg 1%} is true:
- send "&a&l%arg 1% &ais already banned"
- stop
- set {Banned::%uuid of arg 1%} to true
- kick arg 1 because "&cYou have been banned%nl%&aStaff Member: &a&l%executor%%nl%&aTime: &a&l%arg 3%%nl%&aReason: &a&l%arg 2%%nl%%nl%&eIf your ban is permanent, appeal at: 14instapvp.namelesshosting.com"
- ban arg 1 because "&cYou have been banned%nl%&aStaff Member: &a&l%executor%%nl%&aTime: &a&l%arg 3%%nl%&aReason: &a&l%arg 2%%nl%%nl%&eIf your ban is permanent, appeal at: 14instapvp.namelesshosting.com"
- add arg 2 to {bans::%uuid of arg 1%::*}
- loop all players:
- if loop-player has permission "s.see":
- send "&7<Silent> &a&l%arg 1% &ahas been &a<emp-banned &aby &a&l%executor% &afor &a&l%arg 3%" to loop-player
- wait arg 3
- unban arg 1
- command /ban [<offline player>] [<string>]:
- permission: b.use
- permission message: No Permission
- trigger:
- if arg 1 or arg 2 is not set:
- send "&aUsage: /ban (player) (reason)"
- stop
- if {Banned::%uuid of arg 1%} is true:
- send "&a&l%arg 1% &ais already banned"
- stop
- set {Banned::%uuid of arg 1%} to true
- kick arg 1 because "&cYou have been banned%nl%&aStaff Member: &a&l%executor%%nl%&aTime: &a&lPermanent%nl%&aReason: &a&l%arg 2%%nl%%nl%&eIf your ban is permanent, appeal at: 14instapvp.namelesshosting.com"
- ban arg 1 because "&cYou have been banned%nl%&aStaff Member: &a&l%executor%%nl%&aTime: &a&lPermanent%nl%&aReason: &a&l%arg 2%%nl%%nl%&eIf your ban is permanent, appeal at: 14instapvp.namelesshosting.com"
- add arg 2 to {bans::%uuid of arg 1%::*}
- broadcast "&a&l%arg 1% &ahas been &a&lperm-banned &aby &a&l%executor%"
- command /sban [<offline player>] [<string>]:
- permission: b.use
- permission message: No Permission
- trigger:
- if arg 1 or arg 2 is not set:
- send "&aUsage: /sban (player) (reason)"
- stop
- if {Banned::%uuid of arg 1%} is true:
- send "&a&l%arg 1% &ais already banned"
- stop
- set {Banned::%uuid of arg 1%} to true
- kick arg 1 because "&cYou have been banned%nl%&aStaff Member: &a&l%executor%%nl%&aTime: &a&lPermanent%nl%&aReason: &a&l%arg 2%%nl%%nl%&eIf your ban is permanent, appeal at: 14instapvp.namelesshosting.com"
- ban arg 1 because "&cYou have been banned%nl%&aStaff Member: &a&l%executor%%nl%&aTime: &a&lPermanent%nl%&aReason: &a&l%arg 2%%nl%%nl%&eIf your ban is permanent, appeal at: 14instapvp.namelesshosting.com"
- add arg 2 to {bans::%uuid of arg 1%::*}
- loop all players:
- if loop-player has permission "s.see":
- send "&7<Silent> &a&l%arg 1% &ahas been &a&lperm-banned &aby &a&l%executor%" to loop-player
- #------------------------MUTES--------------------------
- command /tempmute [<offline player>] [<string>] [<timespan>]:
- permission: tm.use
- permission message: No Permission
- trigger:
- if arg 1 or arg 2 or arg 3 is not set:
- send "&aUsage: /tempmute (player) (reason) (time - eg. 30 days, 2 weeks)"
- stop
- if {Muted::%uuid of arg 1%} is true:
- send "&a&l%arg 1% &ais already muted"
- stop
- set {Muted::%uuid of arg 1%} to true
- add arg 2 to {mutes::%uuid of arg 1%::*}
- broadcast "&a&l%arg 1% &ahas been &a<emp-muted &aby &a&l%executor% &afor &a&l%arg 3%"
- wait arg 3
- set {Muted::%uuid of arg 1%} to false
- command /stempmute [<offline player>] [<string>] [<timespan>]:
- permission: tm.use
- permission message: No Permission
- trigger:
- if arg 1 or arg 2 or arg 3 is not set:
- send "&aUsage: /stempmute (player) (reason) (time - eg. 30 days, 2 weeks)"
- stop
- if {Muted::%uuid of arg 1%} is true:
- send "&a&l%arg 1% &ais already muted"
- stop
- set {Muted::%uuid of arg 1%} to true
- add arg 2 to {mutes::%uuid of arg 1%::*}
- loop all players:
- if loop-player has permission "s.see":
- send "&7<Silent> &a&l%arg 1% &ahas been &a<emp-muted &aby &a&l%executor% &afor &a&l%arg 3%" to loop-player
- wait arg 3
- set {Muted::%uuid of arg 1%} to false
- command /mute [<offline player>] [<string>]:
- permission: m.use
- permission message: No Permission
- trigger:
- if arg 1 or arg 2 is not set:
- send "&aUsage: /mute (player) (reason)"
- stop
- if {Muted::%uuid of arg 1%} is true:
- send "&a&l%arg 1% &ais already muted"
- stop
- set {Muted::%uuid of arg 1%} to true
- add arg 2 to {mutes::%uuid of arg 1%::*}
- broadcast "&a&l%arg 1% &ahas been &a&lperm-muted &aby &a&l%executor%"
- command /smute [<offline player>] [<string>]:
- permission: m.use
- permission message: No Permission
- trigger:
- if arg 1 or arg 2 is not set:
- send "&aUsage: /smute (player) (reason)"
- stop
- if {Muted::%uuid of arg 1%} is true:
- send "&a&l%arg 1% &ais already muted"
- stop
- set {Muted::%uuid of arg 1%} to true
- add arg 2 to {mutes::%uuid of arg 1%::*}
- loop all players:
- if loop-player has permission "s.see":
- send "&7<Silent> &a&l%arg 1% &ahas been &a&lperm-muted &aby &a&l%executor%" to loop-player
- on chat:
- if {Muted::%uuid of player%} is true:
- send "&aYou cannot talk as &a&lyou are muted"
- cancel event
- #----------------REVOKES----------------------
- command /unmute [<offline player>]:
- permission: um.use
- permission message: No Permission
- trigger:
- if arg 1 is not set:
- send "&aUsage: /unmute (player)"
- stop
- if {Muted::%uuid of arg 1%} is false:
- send "&a&l%arg 1% &ais not muted"
- stop
- set {Muted::%uuid of arg 1%} to false
- broadcast "&a&l%arg 1% &ahas been &a&lun-muted &aby &a&l%executor%"
- command /sunmute [<offline player>]:
- permission: um.use
- permission message: No Permission
- trigger:
- if arg 1 is not set:
- send "&aUsage: /sunmute (player)"
- stop
- if {Muted::%uuid of arg 1%} is false:
- send "&a&l%arg 1% &ais not muted"
- stop
- set {Muted::%uuid of arg 1%} to false
- loop all players:
- if loop-player has permission "s.see":
- send "&7<Silent> &a&l%arg 1% &ahas been &a&lun-muted &aby &a&l%executor%" to loop-player
- command /unban [<offline player>]:
- permission: ub.use
- permission message: No Permission
- trigger:
- if arg 1 is not set:
- send "&aUsage: /unban (player)"
- stop
- if {Banned::%uuid of arg 1%} is false:
- send "&a&l%arg 1% &ais not banned"
- stop
- set {Banned::%uuid of arg 1%} to false
- unban arg 1
- broadcast "&a&l%arg 1% &ahas been &a&lun-banned &aby &a&l%executor%"
- command /sunban [<offline player>]:
- permission: ub.use
- permission message: No Permission
- trigger:
- if arg 1 is not set:
- send "&aUsage: /sunban (player)"
- stop
- if {Banned::%uuid of arg 1%} is false:
- send "&a&l%arg 1% &ais not banned"
- stop
- set {Banned::%uuid of arg 1%} to false
- unban arg 1
- loop all players:
- if loop-player has permission "s.see":
- send "&7<Silent> &a&l%arg 1% &ahas been &a&lun-banned &aby &a&l%executor%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement