Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # _..._ .-'''-.
- # .---. .-'_..._''. ' _ \ _______
- # __ __ ___ .--. _..._ __.....__ _________ _...._ | | __.....__ .' .' '.\/ /` '. \ __ __ ___ __ __ ___ _..._ \ ___ `'.
- # | |/ `.' `. |__| .' '. .-'' '. \ |.' '-. | | .-'' '. / .' . | \ ' | |/ `.' `. | |/ `.' `. .' '. ' |--.\ \
- # | .-. .-. '.--.. .-. . / .-''"'-. `.\ .'```'. '. | | / .-''"'-. `. . ' | ' | '| .-. .-. '| .-. .-. ' . .-. . | | \ '
- # | | | | | || || ' ' |/ /________\ \\ | \ \| |/ /________\ \ ____ _____ | | \ \ / / | | | | | || | | | | | __ | ' ' | | | | '
- # | | | | | || || | | || | | | | || || |`. \ .' / | | `. ` ..' / | | | | | || | | | | | .:--.'. | | | | | | | | _
- # | | | | | || || | | |\ .-------------' | \ / . | |\ .-------------' `. `' .' . ' '-...-'` | | | | | || | | | | |/ | \ | | | | | | | ' .' .' |
- # | | | | | || || | | | \ '-.____...---. | |\`'-.-' .' | | \ '-.____...---. '. .' \ '. . | | | | | || | | | | |`" __ | | | | | | | |___.' /' . | /
- # |__| |__| |__||__|| | | | `. .' | | '-....-'` | | `. .' .' `. '. `._____.-'/ |__| |__| |__||__| |__| |__| .'.''| | | | | |/_______.'/ .'.'| |//
- # | | | | `''-...... -' .' '. '---' `''-...... -' .' .'`. `. `-.______ / / / | |_| | | |\_______|/.'.'.-' /
- # | | | | '-----------' .' / `. `. ` \ \._,\ '/| | | | .' \_.'
- # '--' '--' '----' '----' `--' `" '--' '--'
- #PollexMC Commands Remake
- #by iSaltyLeeky
- #Enjoy!
- script options:
- $ use permissions
- options:
- prefix: &6[&9PollexMC&6]
- maincolour: &6
- secondcolour: &7
- command: /permission
- aliases: /perm, /mpperm, /perms, /isaltyleeky
- permission: PollexMC.admin
- #CMD protection is basically extra security for your server. Only players inside of a list variable can use SkPerms
- CMDprotection: false
- CMDprotectionMsg: Unknown command. Type ""/help"" for help
- #The player list is the list variable that contains players that can use SkPerms if CMDprotection is enabled
- PlayerList: {example::players::*}
- UseChat: true #use prefix and suffix in the chat
- #Chat types:
- #Display - Changes the player's display name (Vault will hook if installed)
- #Override - !COMING SOON
- ChatType: "Display"
- version: 1.0.3
- function mcs(p: player , m: text) :: number:
- if {PollexMC.overidechat} is true:
- if {PollexMC.rank.%{_p}%} is not set:
- set {PollexMC.rank.%{_p}%} to ""
- broadcast "%{PollexMC.rank.%{_p}%}%&e%{_p}% &f%{_m}%"
- return -1
- else:
- broadcast "%{PollexMC.rank.%{_p}%}%&e%{_p}% &f%{_m}%"
- return -1
- else:
- stop
- on connect:
- if {banned::%player%} is true:
- if {banned::%player%::type} is "perm":
- kick player due to "&c&lYou are banned for Permanent%nl%&f%{banned::%player%::reason}%%nl%&2Unfairly banned? Appeal on forums."
- stop
- if {banned::%player%::type} is "temp":
- set {_waited} to difference between {banned::%player%::when} and now
- if {_waited} is less than {banned::%player%::time}:
- kick player due to "&c&lYou are banned for %{banned::%player%::time}%%nl%&f%{banned::%player%::reason}%%nl%&2Unfairly banned? Appeal on forums."
- on join:
- delete {PollexMC.lastm.%player%}
- wait 2.5 seconds
- if {PollexMC.rank.%player%} is not set:
- set {PollexMC.rank.%player%} to ""
- execute console command "/__mp__dp__ %player%"
- if {PollexMC.vanish.%player%} is not set:
- set {PollexMC.vanish.%player%} to false
- if {PollexMC.overidechat} is not set:
- set {PollexMC.overidechat} to true
- if {indev} is not set:
- set {indev} to true
- if {PollexMC.vanish.%player%} is true:
- send ""
- send ""
- send "&6&lYou are currently invisable"
- send "&eThis means you are invisible to all excepet for those who are"
- send "&4Admin&6+"
- send ""
- send ""
- on chat:
- if {muted::%player%} is true:
- if {muted::%player%::type} is "perm":
- send "&9Punish> &7Shh, you're muted because %{muted::%player%::reason}% by %{muted::%player%::by}% for Permanent."
- cancel event
- stop
- if {muted::%player%::type} is "temp":
- set {_waited} to difference between {muted::%player%::when} and now
- if {_waited} is less than {muted::%player%::time}:
- send "&9Punish> &7Shh, you're muted because %{muted::%player%::reason}% by %{muted::%player%::by}% for &a%{muted::%player%::time}%."
- cancel event
- stop
- if {PollexMC.vanish.%player%} is false:
- if {PollexMC.chatslow} is set:
- if player has permission "PollexMC.mod":
- set {_check} to mcs((player), (message))
- if {_check} is less than 0:
- cancel event
- delete {_check}
- else:
- if difference between {lastChat::%player%} and now < {PollexMC.chatslow}:
- cancel event
- send "&9Chat> &7Chat slow enabled. Please wait."
- else:
- set {lastChat::%player%} to now
- set {_check} to mcs((player), (message))
- if {_check} is less than 0:
- cancel event
- delete {_check}
- else if {PollexMC.chatsilence} is set:
- if player has permission "PollexMC.trainee":
- set {_check} to mcs((player), (message))
- if {_check} is less than 0:
- cancel event
- delete {_check}
- else:
- cancel event
- send "&9Chat> &7The chat is silenced."
- else:
- if {party.%player%.chat} is true:
- if length of message is greater than 1:
- if first character of message is "@":
- cancel event
- set message to "%subtext of message from characters 2 to (length of message)%"
- loop {party.%{party.%player%}%::*}:
- message "&5&lParty &f&l%player% &d%message%" to loop-value
- else:
- set {_check} to mcs((player), (message))
- if {_check} is less than 0:
- cancel event
- delete {_check}
- else:
- set {_check} to mcs((player), (message))
- if {_check} is less than 0:
- cancel event
- delete {_check}
- else:
- set {_check} to mcs((player), (message))
- if {_check} is less than 0:
- cancel event
- delete {_check}
- else if {PollexMC.vanish.%player%} is true:
- send "&eYou can not chat while incognito."
- cancel event
- else:
- set {PollexMC.vanish.%player%} to false
- set {_check} to mcs((player), (message))
- if {_check} is less than 0:
- cancel event
- delete {_check}
- command /PollexMC-core <string> [<string>]:
- usage: &9Do /PollexMC-core help
- permission: op
- permission message: &9Permissions> &7This requires Permmission Rank [&9OP&7].
- trigger:
- if argument 1 is "help":
- send "&9Plugin> &7PollexMC Core"
- send "&9Plugin> &7by iSaltyLeeky"
- send ""
- send "&9PollexMC Core> &7Listing PollexMC Core Options:"
- send "&f/PollexMC-core useChat (true/false): &eToggles this plugin to take overide the chat to PollexMC's format."
- send "&f/PollexMC-core setAdmin (Player): &eGives the selected player admin perms (For all PollexMC commands)"
- else if argument 1 is "useChat":
- if argument 2 is "true":
- set {PollexMC.overidechat} to true
- send "&9Chat> &7Now using PollexMC Chat System (MCS)."
- else:
- set {PollexMC.overidechat} to false
- send "&9Chat> &7Now using Default Chat System (DCS)."
- else if argument 1 is "setAdmin":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&4&lADMIN "
- set {_PollexMC.setadmin.temp} to "%arg-2%" parsed as player
- execute console command "/__mp__dp__ %arg-2%"
- add "PollexMC.trainee" to {_PollexMC.setadmin.temp}'s permissions
- add "PollexMC.legend" to {_PollexMC.setadmin.temp}'s permissions
- add "PollexMC.mod" to {_PollexMC.setadmin.temp}'s permissions
- add "PollexMC.builder" to {_PollexMC.setadmin.temp}'s permissions
- add "PollexMC.srmod" to {_PollexMC.setadmin.temp}'s permissions
- add "PollexMC.admin" to {_PollexMC.setadmin.temp}'s permissions
- send "&9Ranks> &7Set %arg-2%'s rank to Admin"
- on tab completer for "/PollexMC-core":
- add "help" to completions
- add "useChat" to completions
- add "setAdmin" to completions
- command /a <text>:
- trigger:
- if player has permission "PollexMC.trainee":
- loop all players:
- if loop-player has permission "PollexMC.trainee":
- send "&a%{PollexMC.rank.%player%}%%player% &d%arg-1%" to loop-player
- else:
- send "&a%{PollexMC.rank.%player%}% %player% &d%arg-1%"
- loop all players:
- if loop-player has permission "PollexMC.trainee":
- send "&a%{PollexMC.rank.%player%}%%player% &d%arg-1%" to loop-player
- command /ma [<player>] [<text>]:
- trigger:
- if player has permission "PollexMC.trainee":
- if argument 1 is set:
- send "&d<-&6%player% &d%arg-2%" to arg-1
- send "&d<-&6%player% &d%arg-2%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else:
- send "&9Permissions> &7This requires Permmission Rank [&9TRAINEE&7]."
- command /__mp__ca__:
- trigger:
- if player has permission "PollexMC.trainee":
- send "%{lasta}%" to player
- else:
- stop
- on any movement:
- loop {rad::*}:
- loop all players in radius 5 around loop-value:
- if player is not "%loop-player%":
- player has permission "PollexMC.trainee":
- stop
- else:
- stop
- command /radius:
- aliases: /ra
- trigger:
- send "&9Command> &7This Command is buggy and is disabled in this Ver. of MPC"
- # if player has permission "PollexMC.trainee":
- # if {PollexMC.radius.%player%} is true:
- # remove player from {rad::*}
- # set {PollexMC.radius.%player%} to false
- # send "&9Radius> &7Players will no longer be repelled from you."
- # else:
- # add player to {rad::*}
- # set {PollexMC.radius.%player%} to true
- # send "&9Radius> &7Players will now repelled from you."
- # else:
- # send "&9Permissions> &7This requires Permmission Rank [&9TRAINEE&7]."
- command /vanish:
- permission: PollexMC.trainee
- permission message: &9Permissions> &7This requires Permmission Rank [&9TRAINEE&7].
- trigger:
- if {PollexMC.vanish.%player%} is true:
- reveal player from all players
- set {PollexMC.vanish.%player%} to false
- send "&9Incognito> &7You are no longer incognito. Your status will only change when you run &e/vanish &7again."
- else:
- hide player from all players
- set {PollexMC.vanish.%player%} to true
- send "&9Incognito> &7You are now incognito. Your status will only change when you run &e/vanish &7again."
- send ""
- send ""
- send "&6&lYou are currently incognito"
- send "&eThis means you are invisible to all excepet for those who are"
- send "&4Admin&f+"
- send ""
- send ""
- command /chatslow [<integer>]:
- aliases: /cs
- permission: PollexMC.srmod
- permission message: &9Permissions> &7This requires Permmission Rank [&9SR.MOD&7].
- trigger:
- if argument 1 is set:
- if {PollexMC.chatsilence} is set:
- send "&9Chat> &7Chat is in silence mode. Disable silence mode to activate slow chat."
- stop
- else:
- if {PollexMC.chatslow} is not set:
- set {PollexMC.chatslow} to "%arg-2% seconds" parsed as timespan
- send "&9Chat> &6%player% &7has set the chat dely to &6%arg-1%&7 seconds." to all players
- else:
- set {PollexMC.chatslow} to "%arg-2% seconds" parsed as timespan
- send "&9Chat> &6%player% &7has enabled chat slow." to all players
- send "&9Chat> &6%player% &7has set the chat dely to &6%arg-1%&7 seconds." to all players
- else:
- if {PollexMC.chatsilence} is set:
- send "&9Chat> &7Chat is in silence mode. Disable silence mode to activate slow chat."
- stop
- else:
- if {PollexMC.chatslow} is set:
- delete {PollexMC.chatslow}
- send "&9Chat> &6%player% &7has disabled chat slow." to all players
- else:
- send "&9Message> &cYou didn't enter a time limit! Defaulting to 10 seconds."
- set {PollexMC.chatslow} to "10 seconds" parsed as timespan
- send "&9Chat> &6%player% &7has enabled chat slow." to all players
- send "&9Chat> &6%player% &7has set the chat dely to &610 &7seconds." to all players
- command /silence:
- permission: PollexMC.admin
- permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
- trigger:
- if {PollexMC.chatslow} is set:
- delete {PollexMC.chatslow}
- send "&9Chat> &6%player% &7has disabled chat slow." to all players
- set {PollexMC.chatsilence} to true
- send "&9Chat> &7The chat has been silenced for Permanent." to all players
- stop
- if {PollexMC.chatsilence} is set:
- delete {PollexMC.chatsilence}
- send "&9Chat> &7The chat has been un-silenced." to all players
- else:
- set {PollexMC.chatsilence} to true
- send "&9Chat> &7The chat has been silenced for Permanent." to all players
- command /locate [<player>]:
- aliases: /find
- permission: PollexMC.mod
- permission message: &9Permissions> &7This requires Permmission Rank [&9MOD&7].
- trigger:
- if argument 1 is set:
- set {_PollexMC.locate.temp} to "%arg-1's world%"
- send "&9Locate> &6%arg-1% &7is in the &6%{_PollexMC.locate.temp}% &7Server."
- else:
- send "&9Message> &cErr...something went wrong?"
- command /tp [<player>] [<player>]:
- permission: PollexMC.mod
- permission message: &9Permissions> &7This requires Permmission Rank [&9MOD&7].
- trigger:
- if argument 1 is set:
- if argument 2 is set:
- if player has permission "PollexMC.admin":
- teleport arg-1 to arg-2
- send "&9Teleport> &7Teleported &6%arg-1% to &6%arg-2%&7."
- else:
- send "&9Permissions> &7This requires Permmission Rank [&9ADMIN&7]."
- else:
- teleport player to arg-1
- send "&9Teleport> &7Teleported you to &6%arg-1%&7."
- else:
- send "&9Message> &cErr...something went wrong?"
- command /tphere [<player>]:
- permission: PollexMC.admin
- permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
- trigger:
- if argument 1 is set:
- teleport arg-1 to player
- send "&9Teleport> &7Teleported &6%arg-1% &7to you."
- else:
- send "&9Message> &cErr...something went wrong?"
- command /updaterank [<string>] [<player>]:
- permission: PollexMC.admin
- permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
- trigger:
- if argument 1 is not set:
- send "&9Rank Update> &7Listing Rank Update Commands:"
- send "&f/rankupdate <rank name> <player>: &eupdates chosen player's rank to the chosen rank"
- send ""
- send "&9Rank Update> &7Listing Rank List:"
- send "&9Ranks> &7MEMBER"
- send "&9Ranks> &7ULTRA"
- send "&9Ranks> &7HERO"
- send "&9Ranks> &7LEGEND"
- send "&9Ranks> &7TITAN"
- send "&9Ranks> &7TRAINEE"
- send "&9Ranks> &7MOD"
- send "&9Ranks> &7SRMOD"
- send "&9Ranks> &7ADMIN"
- send "&9Ranks> &7LEADER"
- send "&9Ranks> &7OWNER"
- send "&9Ranks> &7BUILDER"
- send "&9Ranks> &7MAPLEAD"
- send "&9Ranks> &7DEV"
- send "&9Ranks> &7TWITCH"
- send "&9Ranks> &7YOUTUBE"
- send "&9Ranks> &7YT"
- else if argument 1 is "MEMBER":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to ""
- execute console command "/__mp__dp__ %arg-2%"
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else if argument 1 is "ULTRA":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&b&lULTRA "
- execute console command "/__mp__dp__ %arg-2%"
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else if argument 1 is "HERO":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&d&lHERO "
- execute console command "/__mp__dp__ %arg-2%"
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else if argument 1 is "LEGEND":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&a&lLEGEND "
- execute console command "/__mp__dp__ %arg-2%"
- add "PollexMC.legend" to arg-2's permissions
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else if argument 1 is "TITAN":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&c&lTITAN "
- execute console command "/__mp__dp__ %arg-2%"
- add "PollexMC.legend" to arg-2's permissions
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else if argument 1 is "TRAINEE":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&3&lTRAINEE "
- execute console command "/__mp__dp__ %arg-2%"
- add "PollexMC.trainee" to arg-2's permissions
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else if argument 1 is "MOD":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&6&lMOD "
- execute console command "/__mp__dp__ %arg-2%"
- add "PollexMC.trainee" to arg-2's permissions
- add "PollexMC.mod" to arg-2's permissions
- add "PollexMC.legend" to arg-2's permissions
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else if argument 1 is "SRMOD":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&6&lSR.MOD "
- execute console command "/__mp__dp__ %arg-2%"
- add "PollexMC.trainee" to arg-2's permissions
- add "PollexMC.mod" to arg-2's permissions
- add "PollexMC.srmod" to arg-2's permissions
- add "PollexMC.legend" to arg-2's permissions
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else if argument 1 is "ADMIN":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&4&lADMIN "
- execute console command "/__mp__dp__ %arg-2%"
- add "PollexMC.trainee" to arg-2's permissions
- add "PollexMC.legend" to arg-2's permissions
- add "PollexMC.mod" to arg-2's permissions
- add "PollexMC.builder" to arg-2's permissions
- add "PollexMC.srmod" to arg-2's permissions
- add "PollexMC.admin" to arg-2's permissions
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else if argument 1 is "LEADER":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&4&lLEADER "
- execute console command "/__mp__dp__ %arg-2%"
- add "PollexMC.trainee" to arg-2's permissions
- add "PollexMC.mod" to arg-2's permissions
- add "PollexMC.builder" to arg-2's permissions
- add "PollexMC.srmod" to arg-2's permissions
- add "PollexMC.admin" to arg-2's permissions
- add "PollexMC.leader" to arg-2's permissions
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else if argument 1 is "OWNER":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&4&lOWNER "
- execute console command "/__mp__dp__ %arg-2%"
- add "PollexMC.trainee" to arg-2's permissions
- add "PollexMC.mod" to arg-2's permissions
- add "PollexMC.srmod" to arg-2's permissions
- add "PollexMC.admin" to arg-2's permissions
- add "PollexMC.jrdev" to arg-2's permissions
- add "PollexMC.dev" to arg-2's permissions
- add "PollexMC.builder" to arg-2's permissions
- add "PollexMC.leader" to arg-2's permissions
- add "PollexMC.owner" to arg-2's permissions
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else if argument 1 is "BUILDER":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&9&lBUILDER "
- execute console command "/__mp__dp__ %arg-2%"
- add "PollexMC.builder" to arg-2's permissions
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else if argument 1 is "MAPLEAD":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&9&lMAPLEAD "
- execute console command "/__mp__dp__ %arg-2%"
- add "PollexMC.builder" to arg-2's permissions
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else if argument 1 is "DEV":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&4&lDEV "
- execute console command "/__mp__dp__ %arg-2%"
- add "PollexMC.trainee" to arg-2's permissions
- add "PollexMC.mod" to arg-2's permissions
- add "PollexMC.srmod" to arg-2's permissions
- add "PollexMC.admin" to arg-2's permissions
- add "PollexMC.leader" to arg-2's permissions
- add "PollexMC.owner" to arg-2's permissions
- add "PollexMC.builder" to arg-2's permissions
- add "PollexMC.dev" to arg-2's permissions
- add "PollexMC.admin" to arg-2's permissions
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else if argument 1 is "TWITCH":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&5&lTWITCH "
- execute console command "/__mp__dp__ %arg-2%"
- add "PollexMC.twitch" to arg-2's permissions
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else if argument 1 is "YOUTUBE":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&c&lYOUTUBE "
- execute console command "/__mp__dp__ %arg-2%"
- add "PollexMC.youtube" to arg-2's permissions
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else if argument 1 is "YT":
- if argument 2 is set:
- set {PollexMC.rank.%arg-2%} to "&5&lYT "
- execute console command "/__mp__dp__ %arg-2%"
- add "PollexMC.youtube" to arg-2's permissions
- send "&9Ranks> &7Set %arg-2%'s rank to %arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- else:
- send "&9Message> &cErr...something went wrong?"
- command /__mp__dp__ <player>:
- trigger:
- remove "PollexMC.trainee" from arg-1's permissions
- remove "PollexMC.legend" from arg-1's permissions
- remove "PollexMC.mod" from arg-1's permissions
- remove "PollexMC.srmod" from arg-1's permissions
- remove "PollexMC.admin" from arg-1's permissions
- remove "PollexMC.leader" from arg-1's permissions
- remove "PollexMC.owner" from arg-1's permissions
- remove "PollexMC.dev" from arg-1's permissions
- remove "PollexMC.twitch" from arg-1's permissions
- remove "PollexMC.youtube" from arg-1's permissions
- remove "PollexMC.builder" from arg-1's permissions
- command /s [<text>]:
- permission: PollexMC.mod
- permission message: &9Permissions> &7This requires Permmission Rank [&9MOD&7].
- trigger:
- if argument 1 is set:
- broadcast "&f&l%player% &b&l%arg-1%"
- else:
- send "&9Broadcast> &7Corect Usage: /s <message>."
- command /gm [<player>]:
- permission: PollexMC.builder
- permission message: &9Permissions> &7This requires Permmission Rank [&9BUILDER&7].
- trigger:
- if argument 1 is not set:
- if player's gamemode is survival:
- set the player's gamemode to creative
- send "&9Game Mode> &7%player% Creative Mode: &aTrue"
- else:
- set the player's gamemode to survival
- send "&9Game Mode> &7%player% Creative Mode: &cFalse"
- else:
- if arg-1's gamemode is survival:
- set the arg-1's gamemode to creative
- send "&9Game Mode> &7%arg-1% Creative Mode: &aTrue"
- else:
- set the arg-1's gamemode to survival
- send "&9Game Mode> &7%arg-1% Creative Mode: &cFalse"
- command /message [<player>] [<text>]:
- aliases: /tell, /m, /w
- trigger:
- if argument 1 is set:
- if argument 2 is set:
- send "&6&l%player% > %arg-1% &e&l%arg-2%"
- send "&6&l%player% > %arg-1% &e&l%arg-2%" to arg-1
- set {PollexMC.lastm.%player%} to "%arg-1%" parsed as player
- else:
- send "&9Message> &cErr...something went wrong?"
- else:
- send "&9Message> &cErr...something went wrong?"
- command /ping:
- trigger:
- send "&9Ping> &7PONG!"
- command /r [<text>]:
- aliases: /reply
- trigger:
- if {PollexMC.lastm.%player%} is set:
- if argument 1 is set:
- send "&6&l%player% > %{PollexMC.lastm.%player%}% &e&l%arg-1%"
- send "&6&l%player% > %{PollexMC.lastm.%player%}% &e&l%arg-1%" to {PollexMC.lastm.%player%}
- else:
- send "&9Message> &cErr...something went wrong?"
- else:
- send "&9Message> &7You have not messaged anyone recently."
- command /party [<string>] [<player>]:
- aliases: /z
- trigger:
- if argument 1 is not set:
- send "&9Party> &7Listing Party Commands:"
- send "&f/party <Player>: &eJoin/Create/Invite Player"
- send "&f/party leave: &eLeave your current party"
- send "&f/party kick <Player>: &eKick player from your Party"
- send "&f/party info: &eDisplays info on the current Party."
- else:
- if argument 1 is "kick":
- if {party.%player%} is not set:
- message "&9Party> &7You don't have a party"
- else:
- if {party.%player%} is not player:
- message "&9Party> &7You have to be a party leader to do this"
- stop
- if player arg is not set:
- message "&9Party> &7Player needed. /party kick <player>"
- else:
- if {party.%player%::*} doesn't contain player arg:
- message "&9Party> &7The player needs to be in your party"
- stop
- message "&9Party> &7You kicked %player arg% from the party"
- message "&9Party> &7You've been kicked by %player% from his party" to player arg
- loop {party.%player%::*}:
- if loop-value = player arg:
- delete {party.%player%::%loop-index%}
- delete {party.%player arg%}
- delete {party.%player arg%.chat}
- else if arg 1 is "leave":
- if {party.%player%} is not set:
- message "&9Party> &7You don't have a party"
- else:
- if {party.%player%} is player:
- message "&9Party> &7You can't leave if you are the leader. Do /party disband"
- stop
- message "&9Party> &7You left your party"
- message "&9Party> &7%player% left your party" to {party.%player%}
- set {party.%player%.chat} to false
- loop {party.%{party.%player%}%::*}:
- if loop-value = player:
- delete {party.%{party.%player%}%::%loop-index%}
- delete {party.%player%}
- delete {party.%player%.chat}
- else if arg 1 is "disband":
- if {party.%player%} is not set:
- message "&9Party> &cYou don't have a party"
- else:
- if {party.%player%} is not player:
- message "&9Party> &7You have to be a party leader to do this"
- stop
- message "&9Party> &7You disband your party"
- loop {party.%player%::*}:
- loop-value is not player:
- message "&9Party> &7Your party has been disbanded" to loop-value
- delete {party.%loop-value%.chat}
- delete {party.%loop-value%}
- delete {party.%player%}
- delete {party.%player%.chat}
- delete {party.%player%::*}
- else if arg 1 is "info":
- if {party.%player%} is not set:
- message "&9Party> &7You don't have a party"
- else:
- message "&9Party> &7Party Details:"
- message "Party Leader: &7%{party.%player%}%"
- set {_partyMember} to ""
- loop {party.%{party.%player%}%::*}:
- set {_partyMember} to "%{_partyMember}% %loop-value%"
- message "Your Party: &7%{_partyMember}%"
- else:
- set {_PollexMC.last.party} to "%arg-1%" parsed as player
- if {_PollexMC.last.party} is online:
- if {party.%player%} is set:
- add {_PollexMC.last.party} to {party.%player%::*}
- set {party.%player%.chat} to true
- set {party.%arg-1%.chat} to true
- set {party.%{_PollexMC.last.party}%} to player
- message "&9Party> &7You invited %{_PollexMC.last.party}% to the party."
- else:
- set {party.%player%} to player
- message "&9Party> &7Created a party."
- add player to {party.%player%::*}
- make player execute command "/party %arg-1%"
- else:
- send "&9Party> &7That player is not online."
- command /announce [<text>]:
- permission: PollexMC.admin
- permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
- trigger:
- if argument 1 is set:
- send all players title "&eAnnouncement" with subtitle "&b%arg-1%" for 10 seconds
- broadcast "&9Announcement> &b%arg-1%"
- else:
- send "&9Message> &cErr...something went wrong?"
- command /punish [<offline player>] [<text>]:
- aliases: /p
- permission: PollexMC.trainee
- permission message: &9Permissions> &7This requires Permmission Rank [&9TRAINEE&7].
- trigger:
- if args 1 is not set:
- message "&9Punish> &7Please specifiy a user and a reason to punish!"
- stop
- if args 1 is set:
- if args 2 is not set:
- message "&9Punish> &7Please specifiy a reason to punish!"
- stop
- if args 2 is set:
- if player has permission "PollexMC.admin":
- open chest with 6 rows named " Punish" to player
- wait 2 ticks
- format slot 4 of player with arg-1's skull named "&a&l%arg-1%" with lore "&7&lReason: &7%arg-2%" to be unstealable
- format slot 10 of player with book and quill named "&a&lChat Offense" with lore "&7Verbal Abuse, Spam, Harrassment, Trolling, etc" to be unstealable
- format slot 19 of player with cactus green named "&a&lSeverity 1" with lore "&fMute Duration: &e10.0 Hours||||&7Light Spam||&f Sending the same message 2-5 times||||&7Light Advertising||&f 'anyone want to play on minecade?'||||&7Light Abuse/Harassment||&f 'you suck at this game'||||&7Hackusations||&f 'you're such a hacker!'||||&7Trolling||||&2Give Warning if 0 Past Offences and 0 Warnings." to close then run [make player execute command "tempmute %arg-1% 10 hour %arg-2%"]
- format slot 28 of player with dandelion yellow named "&a&lSeverity 2" with lore "&fMute Duration: &e1.0 Days||||&7Medium Spam|| &fSending the same message 6-20 times||||&7Medium Advertising:|| &f'join crap.server.net' - posted once||||&7Medium Abuse/Harassment|| &f'piss off you stupid newb'|| &f'SHIT ADMINS ARE SHIT!!!'|| &f'you're terrible, learn to play'||||&7Avoiding Chat Filter|| &f'F|_|<K YOU'" to close then run [do [execute console command "/__mp__tempmute__ %arg-1% 1 %player% %arg-2%"]->[execute console command "/__mp__imm__ %player% %arg-1% 1 day"]]
- format slot 37 of player with rose red named "&a&lSeverity 3" with lore "&fMute Duration: &e30.0 Days||||&7Severe Spam|| &fSending the same message 20+ times|| &fOnly really used for a spam bot||||&7Severe Abuse/Harassment|| &f'go fucking die in a fire you fucking sack of shit'" to close then run [do [execute console command "/__mp__tempmute__ %arg-1% 30 %player% %arg-2%"]->[execute console command "/__mp__imm__ %player% %arg-1% 30 days"]]
- format slot 12 of player with hopper named "&a&lGeneral Offense" with lore "&7Command/Map/Class/Skill exploits, etc" to be unstealable
- format slot 21 of player with cactus green named "&a&lSeverity 1" with lore "&fBan Duration: &e4.0 Hours||||&7Team Killing||&f Intentionally killing your team mates||||&7Trolling (Gameplay)||&f Using abilities to trap players in spawn||||&7Map/Bug Exploiting||&f Abusing an exploit to gain an advantage" to close then run [do [execute console command "/__mp__htempban__ %arg-1% 4 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 4 hours"]]
- format slot 14 of player with iron sword named "&a&lClient Mod" with lore "&7X-ray, Forcefield, Speed, Fly, Inventory Hacks, etc" to be unstealable
- format slot 23 of player with cactus green named "&a&lSeverity 1" with lore "&fBan Duration: &e1.0 Days||||&7Examples:||&f Damage Indicators||&f Player Radar" to close then run [do [execute console command "/__mp__tempban__ %arg-1% 1 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 1 day"]]
- format slot 32 of player with dandelion yellow named "&a&lSeverity 2" with lore "&fBan Duration: &e30.0 Days||||&7Hacks:|| &fForcefield|| &fSpeed Hack|| &fReach Hack|| &fSpeed Hack|| &fOther Hack||||&7Hack Reports (SR & FR):|| &fForcefield|| &fSpeed Hack|| &fReach Hack|| &fSpeed Hack|| &fOther Hack|| &fFly Hack" to close then run [do [execute console command "/__mp__tempban__ %arg-1% 30 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 30 days"]]
- format slot 41 of player with rose red named "&a&lSeverity 3" with lore "&fBan Duration: &e30.0 Days||||&7Hacks:|| &fFly Hack||||&c&lWARNING:||&cUse Severity 2 for Forum/Staff Reports" to close then run [do [execute console command "/__mp__tempban__ %arg-1% 30 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 30 days"]]
- format slot 25 of player with paper named "&a&lWarning" with lore "||&7Example Warning Input:||&f Spam - Repeatedly writing MEOW||&f Swearing - Saying 'fuck' and 'shit'||&f Hack Accusation - Accused Tomp13 of hacking||&f Trolling - was trying to make bob angry in chat" to close then run [make player execute command "warn %arg-1% %arg-2%"]
- format slot 34 of player with redstone block named "&a&lPermanent Ban" with lore "&fBan Duration: &ePermanent||||&2Must supply a detailed reason for Ban." to close then run [do [execute console command "/__mp__ban__ %arg-1% %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% Permanent"]]
- format slot 43 of player with book and quill named "&a&lPermanent Mute" with lore "&fMute Duration: &ePermanent||||&7Severe Advertising:||&f 'JOIN MINECADE! THIS SUCKS!||&f 'join crap.server.net! FREE ADMIN!||||&2Must supply a detailed reason for Mute." to close then run [do [execute console command "/__mp__mute__ %arg-1% %player% %arg-2%"]->[execute console command "/__mp__imm__ %player% %arg-1% Permanent"]]
- format slot 8 of player with shiny book and quill named "&a&lUnmute" with lore "&fUnmute Reason: &e%arg-2%" to close then run [do [execute console command "/__mp__iumm__ %player% %arg-1%"]->[execute console command "/__mp__unmute__ %arg-1%"]]
- format slot 7 of player with shiny redstone block named "&a&lUnban" with lore "&fUnban Reason: &e%arg-2%" to close then run [do [execute console command "/__mp__unban__ %arg-1%"]->[execute console command "/__mp__iubm__ %player% %arg-1%"]]
- format slot 6 of player with shiny paper named "&a&lUnwarn" with lore "&fUnwarn Reason: &e%arg-2%" to close then run [make player execute command "unwarn %arg-1%"]
- else if player has permission "PollexMC.mod":
- open chest with 6 rows named " Punish" to player
- wait 2 ticks
- format slot 4 of player with arg-1's skull named "&a&l%arg-1%" with lore "&7&lReason: &7%arg-2%" to be unstealable
- format slot 10 of player with book and quill named "&a&lChat Offense" with lore "&7Verbal Abuse, Spam, Harrassment, Trolling, etc" to be unstealable
- format slot 19 of player with cactus green named "&a&lSeverity 1" with lore "&fMute Duration: &e10.0 Hours||||&7Light Spam||&f Sending the same message 2-5 times||||&7Light Advertising||&f 'anyone want to play on minecade?'||||&7Light Abuse/Harassment||&f 'you suck at this game'||||&7Hackusations||&f 'you're such a hacker!'||||&7Trolling||||&2Give Warning if 0 Past Offences and 0 Warnings." to close then run [make player execute command "tempmute %arg-1% 10 hour %arg-2%"]
- format slot 28 of player with dandelion yellow named "&a&lSeverity 2" with lore "&fMute Duration: &e1.0 Days||||&7Medium Spam|| &fSending the same message 6-20 times||||&7Medium Advertising:|| &f'join crap.server.net' - posted once||||&7Medium Abuse/Harassment|| &f'piss off you stupid newb'|| &f'SHIT ADMINS ARE SHIT!!!'|| &f'you're terrible, learn to play'||||&7Avoiding Chat Filter|| &f'F|_|<K YOU'" to close then run [do [execute console command "/__mp__tempmute__ %arg-1% 1 %player% %arg-2%"]->[execute console command "/__mp__imm__ %player% %arg-1% 1 day"]]
- format slot 37 of player with rose red named "&a&lSeverity 3" with lore "&fMute Duration: &e30.0 Days||||&7Severe Spam|| &fSending the same message 20+ times|| &fOnly really used for a spam bot||||&7Severe Abuse/Harassment|| &f'go fucking die in a fire you fucking sack of shit'" to close then run [do [execute console command "/__mp__tempmute__ %arg-1% 30 %player% %arg-2%"]->[execute console command "/__mp__imm__ %player% %arg-1% 30 days"]]
- format slot 12 of player with hopper named "&a&lGeneral Offense" with lore "&7Command/Map/Class/Skill exploits, etc" to be unstealable
- format slot 21 of player with cactus green named "&a&lSeverity 1" with lore "&fBan Duration: &e4.0 Hours||||&7Team Killing||&f Intentionally killing your team mates||||&7Trolling (Gameplay)||&f Using abilities to trap players in spawn||||&7Map/Bug Exploiting||&f Abusing an exploit to gain an advantage" to close then run [do [execute console command "/__mp__htempban__ %arg-1% 4 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 4 hours"]]
- format slot 14 of player with iron sword named "&a&lClient Mod" with lore "&7X-ray, Forcefield, Speed, Fly, Inventory Hacks, etc" to be unstealable
- format slot 23 of player with cactus green named "&a&lSeverity 1" with lore "&fBan Duration: &e1.0 Days||||&7Examples:||&f Damage Indicators||&f Player Radar" to close then run [do [execute console command "/__mp__tempban__ %arg-1% 1 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 1 day"]]
- format slot 32 of player with dandelion yellow named "&a&lSeverity 2" with lore "&fBan Duration: &e30.0 Days||||&7Hacks:|| &fForcefield|| &fSpeed Hack|| &fReach Hack|| &fSpeed Hack|| &fOther Hack||||&7Hack Reports (SR & FR):|| &fForcefield|| &fSpeed Hack|| &fReach Hack|| &fSpeed Hack|| &fOther Hack|| &fFly Hack" to close then run [do [execute console command "/__mp__tempban__ %arg-1% 30 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 30 days"]]
- format slot 41 of player with rose red named "&a&lSeverity 3" with lore "&fBan Duration: &e30.0 Days||||&7Hacks:|| &fFly Hack||||&c&lWARNING:||&cUse Severity 2 for Forum/Staff Reports" to close then run [do [execute console command "/__mp__tempban__ %arg-1% 30 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 30 days"]]
- format slot 25 of player with paper named "&a&lWarning" with lore "||&7Example Warning Input:||&f Spam - Repeatedly writing MEOW||&f Swearing - Saying 'fuck' and 'shit'||&f Hack Accusation - Accused Tomp13 of hacking||&f Trolling - was trying to make bob angry in chat" to close then run [make player execute command "warn %arg-1% %arg-2%"]
- format slot 34 of player with redstone block named "&a&lPermanent Ban" with lore "&fBan Duration: &ePermanent||||&2Must supply a detailed reason for Ban." to close then run [make player execute command "ban %arg-1% %arg-2%"]
- format slot 43 of player with book and quill named "&a&lPermanent Mute" with lore "&fMute Duration: &ePermanent||||&7Severe Advertising:||&f 'JOIN MINECADE! THIS SUCKS!||&f 'join crap.server.net! FREE ADMIN!||||&2Must supply a detailed reason for Mute." to close then run [do [execute console command "/__mp__mute__ %arg-1% %player% %arg-2%"]->[execute console command "/__mp__imm__ %player% %arg-1% Permanent"]]
- else:
- open chest with 6 rows named " Punish" to player
- wait 2 ticks
- format slot 4 of player with arg-1's skull named "&a&l%arg-1%" with lore "&7&lReason: &7%arg-2%" to be unstealable
- format slot 10 of player with book and quill named "&a&lChat Offense" with lore "&7Verbal Abuse, Spam, Harrassment, Trolling, etc" to be unstealable
- format slot 19 of player with cactus green named "&a&lSeverity 1" with lore "&fMute Duration: &e10.0 Hours||||&7Light Spam||&f Sending the same message 2-5 times||||&7Light Advertising||&f 'anyone want to play on minecade?'||||&7Light Abuse/Harassment||&f 'you suck at this game'||||&7Hackusations||&f 'you're such a hacker!'||||&7Trolling||||&2Give Warning if 0 Past Offences and 0 Warnings." to close then run [make player execute command "tempmute %arg-1% 10 hour %arg-2%"]
- format slot 12 of player with hopper named "&a&lGeneral Offense" with lore "&7Command/Map/Class/Skill exploits, etc" to be unstealable
- format slot 21 of player with cactus green named "&a&lSeverity 1" with lore "&fBan Duration: &e4.0 Hours||||&7Team Killing||&f Intentionally killing your team mates||||&7Trolling (Gameplay)||&f Using abilities to trap players in spawn||||&7Map/Bug Exploiting||&f Abusing an exploit to gain an advantage" to close then run [do [execute console command "/__mp__htempban__ %arg-1% 4 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 4 hours"]]
- format slot 14 of player with iron sword named "&a&lClient Mod" with lore "&7X-ray, Forcefield, Speed, Fly, Inventory Hacks, etc" to be unstealable
- format slot 23 of player with cactus green named "&a&lSeverity 1" with lore "&fBan Duration: &e1.0 Days||||&7Examples:||&f Damage Indicators||&f Player Radar" to close then run [do [execute console command "/__mp__tempban__ %arg-1% 1 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 1 day"]]
- format slot 25 of player with paper named "&a&lWarning" with lore "||&7Example Warning Input:||&f Spam - Repeatedly writing MEOW||&f Swearing - Saying 'fuck' and 'shit'||&f Hack Accusation - Accused Tomp13 of hacking||&f Trolling - was trying to make bob angry in chat" to close then run [make player execute command "warn %arg-1% %arg-2%"]
- command /__mp__ibm__ <text> <text> <text>:
- trigger:
- if executor is player:
- send "Unknown command. Type ""help"" for help."
- stop
- loop all players:
- if loop-player has permission "PollexMC.trainee":
- send "&9Punish> &7%arg-1% banned %arg-2% for %arg-3%." to loop-player
- command /__mp__imm__ <text> <text> <text>:
- trigger:
- if executor is player:
- send "Unknown command. Type ""help"" for help."
- stop
- loop all players:
- if loop-player has permission "PollexMC.trainee":
- send "&9Punish> &7%arg-1% muted %arg-2% for %arg-3%." to loop-player
- command /__mp__iubm__ <text> <text>:
- trigger:
- if executor is player:
- send "Unknown command. Type ""help"" for help."
- stop
- loop all players:
- if loop-player has permission "PollexMC.trainee":
- send "&9Punish> &7%arg-1% unbanned %arg-2%." to loop-player
- command /__mp__iumm__ <text> <text>:
- trigger:
- if executor is player:
- send "Unknown command. Type ""help"" for help."
- stop
- loop all players:
- if loop-player has permission "PollexMC.trainee":
- send "&9Punish> &7%arg-1% ummuted %arg-2%." to loop-player
- command /__mp__unban__ [<text>]:
- trigger:
- if executor is player:
- send "Unknown command. Type ""help"" for help."
- stop
- if arg 1 is not set:
- stop
- set {_player} to arg 1 parsed as offlineplayer
- delete {banned::%{_player}%}
- delete {banned::%{_player}%::*}
- message "&4* &cYou have unbanned %{_player}%"
- command /__mp__ban__ [<text>] [<text>]:
- trigger:
- if executor is player:
- send "Unknown command. Type ""help"" for help."
- stop
- if player does not have permission "ban.people":
- message "&4* &cYou do not have permission to ban people."
- stop
- if arg 1 is not set:
- message "&4* &cUnspecified player. &7Try &f/ban [player] [reason]&7."
- stop
- if arg 2 is not set:
- message "&4* &cUnspecified time. &7Try &f/ban %arg 1% [reason]&7."
- stop
- set {_player} to arg 1 parsed as offlineplayer
- set {banned::%{_player}%} to true
- set {banned::%{_player}%::type} to "perm"
- set {banned::%{_player}%::reason} to arg 2
- kick {_player} due to "&c&lYou are banned for Permanent%nl%&f%{banned::%{_player}%::reason}%%nl%&2Unfairly banned? Appeal at &awww.PollexMC.com/appeals"
- command /__mp__tempban__ [<text>] [<text>] [<text>]:
- trigger:
- if executor is player:
- send "Unknown command. Type ""help"" for help."
- stop
- if player does not have permission "ban.people":
- message "&4* &cYou do not have permission to ban people."
- stop
- if arg 1 is not set:
- message "&4* &cUnspecified player. &7Try &f/tempban [player] [time] [reason]&7."
- stop
- if arg 2 is not set:
- message "&4* &cUnspecified time. &7Try &f/tempban %arg 1% [time] [reason]&7."
- stop
- if arg 3 is not set:
- message "&4* &cUnspecified reason. &7Try &f/tempban %arg 1% %arg 2% [reason]&7."
- stop
- set {_player} to arg 1 parsed as offlineplayer
- set {_duration} to "%arg 2% days" parsed as timespan
- set {banned::%{_player}%} to true
- set {banned::%{_player}%::type} to "temp"
- set {banned::%{_player}%::reason} to arg 3
- set {banned::%{_player}%::time} to {_duration}
- set {banned::%{_player}%::when} to now
- kick {_player} due to "&c&lYou are banned for %{banned::%{_player}%::time}%%nl%&f%{banned::%{_player}%::reason}%%nl%&2Unfairly banned? Appeal at &awww.PollexMC.com/appeals"
- command /__mp__htempban__ [<text>] [<text>] [<text>]:
- trigger:
- if executor is player:
- send "Unknown command. Type ""help"" for help."
- stop
- if player does not have permission "ban.people":
- message "&4* &cYou do not have permission to ban people."
- stop
- if arg 1 is not set:
- message "&4* &cUnspecified player. &7Try &f/tempban [player] [time] [reason]&7."
- stop
- if arg 2 is not set:
- message "&4* &cUnspecified time. &7Try &f/tempban %arg 1% [time] [reason]&7."
- stop
- if arg 3 is not set:
- message "&4* &cUnspecified reason. &7Try &f/tempban %arg 1% %arg 2% [reason]&7."
- stop
- set {_player} to arg 1 parsed as offlineplayer
- set {_duration} to "%arg 2% hours" parsed as timespan
- set {banned::%{_player}%} to true
- set {banned::%{_player}%::type} to "temp"
- set {banned::%{_player}%::reason} to arg 3
- set {banned::%{_player}%::time} to {_duration}
- set {banned::%{_player}%::when} to now
- kick {_player} due to "&c&lYou are banned for %{banned::%{_player}%::time}%%nl%&f%{banned::%{_player}%::reason}%%nl%&2Unfairly banned? Appeal at &awww.PollexMC.com/appeals"
- command /__mp__tempmute__ [<text>] [<text>] [<text>] [<text>]:
- trigger:
- if executor is player:
- send "Unknown command. Type ""help"" for help."
- stop
- if player does not have permission "mute.people":
- stop
- if arg 1 is not set:
- stop
- if arg 2 is not set:
- stop
- if arg 3 is not set:
- stop
- set {_player} to arg 1 parsed as offlineplayer
- set {_duration} to "%arg 2% days" parsed as timespan
- set {muted::%{_player}%} to true
- set {muted::%{_player}%::type} to "temp"
- set {muted::%{_player}%::reason} to arg 4
- set {muted::%{_player}%::time} to {_duration}
- set {muted::%{_player}%::when} to now
- set {muted::%{_player}%::by} to arg 3
- send "&9Punish> &7&lReason: &r&7%arg-4%" to {_player}
- send "&9Punish> &7%{muted::%{_player}%::by}% muted %arg-1% for %{muted::%{_player}%::time}%." to {_player}
- command /__mp__mute__ [<text>] [<text>] [<text>]:
- trigger:
- if executor is player:
- send "Unknown command. Type ""help"" for help."
- stop
- if player does not have permission "mute.people":
- stop
- if arg 1 is not set:
- stop
- if arg 2 is not set:
- stop
- set {_player} to arg 1 parsed as offlineplayer
- set {muted::%{_player}%} to true
- set {muted::%{_player}%::type} to "perm"
- set {muted::%{_player}%::reason} to arg 3
- set {muted::%{_player}%::by} to arg 2
- send "&9Punish> &7&lReason: &r&7%arg-3%" to {_player}
- send "&9Punish> &7%{muted::%{_player}%::by}% muted %arg-1% for Permanent." to {_player}
- command /__mp__unmute__ [<text>]:
- trigger:
- if executor is player:
- send "Unknown command. Type ""help"" for help."
- stop
- if arg 1 is not set:
- stop
- set {_player} to arg 1 parsed as offlineplayer
- delete {muted::%{_player}%}
- delete {muted::%{_player}%::*}
- message "&4* &cYou have unbanned %{_player}%"
- command /prefs:
- trigger:
- if player has permission "PollexMC.trainne":
- open chest with 6 rows named "My Preferences" to player
- format slot 0 of player with 1 of fire charge named "&aHub Player Stacker" with lore "%{PollexMC.stacker.%player%}%" to close then run [execute player command "/__mc__pt__ 1"]
- format slot 2 of player with 1 of eye of ender named "&aHub Player Visibility" with lore "%{PollexMC.vis.%player%}%" to close then run [execute player command "/__mc__pt__ 2"]
- format slot 4 of player with 1 of paper named "&aPlayer Chat" with lore "%{PollexMC.pchat.%player%}%" to close then run [execute player command "/__mc__pt__ 3"]
- format slot 6 of player with 1 of map named "&aPrivite Messaging" with lore "%{PollexMC.pmesg.%player%}%" to close then run [execute player command "/__mc__pt__ 4"]
- format slot 8 of player with 1 of paper named "&aHub Party Reqests" with lore "%{PollexMC.hpreq.%player%}%" to close then run [execute player command "/__mc__pt__ 5"]
- format slot 9 of player with 1 of dye:10 named "&aHub Player Stacker" with lore "%{PollexMC.stacker.%player%}%" to close then run [execute player command "/__mc__pt__ 1"]
- format slot 11 of player with 1 of dye:10 named "&aHub Player Visibility" with lore "%{PollexMC.vis.%player%}%" to close then run [execute player command "/__mc__pt__ 2"]
- format slot 13 of player with 1 of dye:10 named "&aPlayer Chat" with lore "%{PollexMC.pchat.%player%}%" to close then run [execute player command "/__mc__pt__ 3"]
- format slot 15 of player with 1 of dye:10 named "&aPrivite Messaging" with lore "%{PollexMC.pmesg.%player%}%" to close then run [execute player command "/__mc__pt__ 4"]
- format slot 17 of player with 1 of dye:10 named "&aHub Party Reqests" with lore "%{PollexMC.hpreq.%player%}%" to close then run [execute player command "/__mc__pt__ 5"]
- format slot 28 of player with 1 of red flower named "&aShow Pending Friend Requests" with lore "%{PollexMC.pfreq.%player%}%" to close then run [execute player command "/__mc__pt__ 6"]
- format slot 37 of player with 1 of dye:10 named "&aShow Pending Friend Requests" with lore "%{PollexMC.pfreq.%player%}%" to close then run [execute player command "/__mc__pt__ 6"]
- else:
- open chest with 6 rows named "My Preferences" to player
- format slot 0 of player with 1 of fire charge named "&aHub Player Stacker" with lore "%{PollexMC.stacker.%player%}%" to close then run [execute player command "/__mc__pt__ 1"]
- format slot 2 of player with 1 of eye of ender named "&aHub Player Visibility" with lore "%{PollexMC.vis.%player%}%" to close then run [execute player command "/__mc__pt__ 2"]
- format slot 4 of player with 1 of paper named "&aPlayer Chat" with lore "%{PollexMC.pchat.%player%}%" to close then run [execute player command "/__mc__pt__ 3"]
- format slot 6 of player with 1 of map named "&aPrivite Messaging" with lore "%{PollexMC.pmesg.%player%}%" to close then run [execute player command "/__mc__pt__ 4"]
- format slot 8 of player with 1 of paper named "&aHub Party Reqests" with lore "%{PollexMC.hpreq.%player%}%" to close then run [execute player command "/__mc__pt__ 5"]
- format slot 9 of player with 1 of dye:10 named "&aHub Player Stacker" with lore "%{PollexMC.stacker.%player%}%" to close then run [execute player command "/__mc__pt__ 1"]
- format slot 11 of player with 1 of dye:10 named "&aHub Player Visibility" with lore "%{PollexMC.vis.%player%}%" to close then run [execute player command "/__mc__pt__ 2"]
- format slot 13 of player with 1 of dye:10 named "&aPlayer Chat" with lore "%{PollexMC.pchat.%player%}%" to close then run [execute player command "/__mc__pt__ 3"]
- format slot 15 of player with 1 of dye:10 named "&aPrivite Messaging" with lore "%{PollexMC.pmesg.%player%}%" to close then run [execute player command "/__mc__pt__ 4"]
- format slot 17 of player with 1 of dye:10 named "&aHub Party Reqests" with lore "%{PollexMC.hpreq.%player%}%" to close then run [execute player command "/__mc__pt__ 5"]
- format slot 28 of player with 1 of red flower named "&aShow Pending Friend Requests" with lore "%{PollexMC.pfreq.%player%}%" to close then run [execute player command "/__mc__pt__ 6"]
- format slot 37 of player with 1 of dye:10 named "&aShow Pending Friend Requests" with lore "%{PollexMC.pfreq.%player%}%" to close then run [execute player command "/__mc__pt__ 6"]
- command /tabname <player> <string>:
- trigger:
- set arg-1 tab name to "&4&l%arg-2% &f%arg-1%"
- #skPerms by LimeGlass
- #Thanks for Letting Me Bake This In!
- on script load:
- set {skperms::config::version} to yaml value "version" from file "../../SkPerms/config.yml"
- if {skperms::config::version} is not set:
- set {_c} to true
- set yaml value "version" from file "../../SkPerms/config.yml" to "{@version}"
- set {skperms::config::useYML} to yaml value "useYML" from file "../../SkPerms/config.yml"
- if {skperms::config::useYML} is not set:
- set {_c} to true
- set yaml value "useYML" from file "../../SkPerms/config.yml" to false
- else if {skperms::config::useYML} is true:
- loop {skperms::players::*}:
- set {skperms::player::%loop-value%::permissions::*} to yaml nodes with keys "players.%loop-value%.permissions" from file "../../SkPerms/players.yml"
- if {skperms::player::%loop-value%::permissions::*} is not set:
- loop {skperms::player::%loop-value%::permissions::*}:
- add "%loop-value-2%" to yaml list "players.%loop-value-1%.permissions" from file "../../SkPerms/players.yml"
- if {_c} is true:
- execute console command "/sk reload SkPerms"
- on script stop:
- loop {skperms::groups::*}:
- if {skperms::group::%loop-value%::*} is not set:
- loop {skperms::group::%loop-value-1%::permissions::*}:
- loop {skperms::players::*}:
- remove "%loop-value-2%" from {skperms::player::%loop-value-3%::permissions::*}
- loop {skperms::players::*}:
- remove "%loop-value-1%" from {skperms::player::%loop-value-2%::groups::*}
- if {skperms::player::%loop-value-2%::groups::*} is not empty:
- loop {skperms::player::%loop-value-2%::groups::*}:
- loop {skperms::group::%loop-value-1%::permissions::*}:
- set {_p} to "%loop-value-2%" parsed as player
- add "%loop-value-4%" to {_p}'s permissions
- remove "%loop-value%" from {skperms::groups::*}
- command {@command} [<text>] [<text>] [<text>] [<text>] [<text>]:
- permission: {@permission}
- aliases: {@aliases}
- trigger:
- if {@CMDprotection} is true:
- if command sender is not console:
- if {@PlayerList} doesn't contain player or "%player%":
- message "{@CMDprotectionMsg}"
- stop
- if arg 1 is not set:
- message ""
- message "{@prefix} v{@version}:"
- message "{@maincolour}{@command} deleteDefault"
- message "{@secondcolour}Deletes default group setting (If set)"
- message "{@maincolour}{@command} (d|default) (group)"
- if {skperms::default} is set:
- message "{@secondcolour}Set the default group {@maincolour}(&7%{skperms::default}%{@maincolour})"
- else:
- message "{@secondcolour}Set the default group"
- message "{@maincolour}{@command} (p|player) (player) (add|remove|list) permission [permission]"
- message "{@secondcolour}Add/remove/list a players permissions"
- message "{@maincolour}{@command} (p|player) (player) (add|set|remove|list) group [group]"
- message "{@secondcolour}Add/remove/set/list a players group"
- message "{@maincolour}{@command} (g|group) (group) (add|remove|list) permission [permission]"
- message "{@secondcolour}Add/remove/list a group permission"
- message "{@maincolour}{@command} (g|group) (group) (add|remove|list) group [group]"
- message "{@secondcolour}Add/remove/list a groups connected groups"
- message "{@secondcolour}A group is created once it contains a permission"
- message "{@maincolour}{@command} (g|group) (group) (prefix|suffix) set (text)"
- message "{@secondcolour}Set a suffix or prefix to a group"
- message ""
- else if arg 1 is "deleteDefault":
- delete {skperms::default}
- message "{@prefix} {@maincolour}Removed default group (No group set)"
- else if arg 1 is "d", "setdefault" or "default":
- if arg 2 is set:
- set {skperms::default} to "%arg 2%"
- message "{@prefix} {@maincolour}Set default group to &l%arg 2%"
- else:
- message "{@prefix} {@maincolour}Error: Group not specified"
- else if arg 1 is "p" or "player":
- if arg 2 is not set:
- message "{@prefix} {@maincolour}Error: Player not specified"
- else if arg 2 is set:
- if arg 3 is "a" or "add":
- if arg 4 is "p", "permission" or "permissions":
- if arg 5 is set:
- if {skperms::groups::*} doesn't contain "%arg 2%":
- add "%arg 2%" to {skperms::groups::*}
- set {_player} to arg 2 parsed as player
- add "%arg 5%" to {_player}'s permissions
- set {skperms::player::%arg 2%::permissions::*} to {_player}'s permissions
- message "{@prefix} {@maincolour}Added %arg 5% to %arg 2%'s permissions"
- else:
- message "{@prefix} {@maincolour}Error: Permission not specified"
- else if arg 4 is "g", "group" or "groups":
- if arg 5 is set:
- if {skperms::groups::*} doesn't contain "%arg 2%":
- add "%arg 2%" to {skperms::groups::*}
- if {skperms::player::%arg 2%::groups::*} doesn't contain "%arg 5%":
- add "%arg 5%" to {skperms::player::%arg 2%::groups::*}
- else:
- message "{@prefix} {@secondcolour}%arg 2% already has group %arg 5%"
- stop
- message "{@prefix} {@maincolour}Added %arg 2% to group %arg 5%"
- if {@UseChat} is true:
- if {@ChatType} is "Display" or "display":
- loop all players where [{skperms::player::%player%::groups::*} contains "%arg 5%"]:
- if {skperms::group::%arg 5%::prefix} is set:
- if {skperms::group::%arg 5%::suffix} is set:
- set loop-player's display name to coloured "%{skperms::group::%arg 5%::prefix}%%loop-player%%{skperms::group::%arg 5%::suffix}%"
- else:
- set loop-player's display name to coloured "%{skperms::group::%arg 5%::prefix}%%loop-player%"
- else if {skperms::group::%arg 5%::suffix} is set:
- set loop-player's display name to coloured "%loop-player%%{skperms::group::%arg 5%::suffix}%"
- else:
- set loop-player's display name to "%player%"
- loop all players where [{skperms::player::%player%::groups::*} is not set]:
- set loop-player's display name to "%player%"
- else:
- message "{@prefix} {@maincolour}Error: Group not specified"
- else:
- message "{@prefix} {@maincolour}Error: Type not specified"
- else if arg 3 is "s" or "set":
- if arg 4 is "g", "group" or "groups":
- if arg 5 is set:
- if {skperms::groups::*} doesn't contain "%arg 2%":
- add "%arg 2%" to {skperms::groups::*}
- delete {skperms::player::%arg 2%::groups::*}
- add "%arg 5%" to {skperms::player::%arg 2%::groups::*}
- message "{@prefix} {@maincolour}Set %arg 2% to group %arg 5%"
- if {@UseChat} is true:
- if {@ChatType} is "Display" or "display":
- loop all players where [{skperms::player::%player%::groups::*} contains "%arg 5%"]:
- if {skperms::group::%arg 5%::prefix} is set:
- if {skperms::group::%arg 5%::suffix} is set:
- set loop-player's display name to coloured "%{skperms::group::%arg 5%::prefix}%%loop-player%%{skperms::group::%arg 5%::suffix}%"
- else:
- set loop-player's display name to coloured "%{skperms::group::%arg 5%::prefix}%%loop-player%"
- else if {skperms::group::%arg 5%::suffix} is set:
- set loop-player's display name to coloured "%loop-player%%{skperms::group::%arg 5%::suffix}%"
- else:
- set loop-player's display name to "%player%"
- loop all players where [{skperms::player::%player%::groups::*} is not set]:
- set loop-player's display name to "%player%"
- else:
- message "{@prefix} {@maincolour}Error: Group not specified"
- else:
- message "{@prefix} {@maincolour}Error: Type not specified"
- else if arg 3 is "r" or "remove":
- if arg 4 is "p", "permission" or "permissions":
- if arg 5 is set:
- set {_player} to arg 2 parsed as player
- remove "%arg 5%" from {_player}'s permissions
- set {skperms::player::%arg 2%::permissions::*} to {_player}'s permissions
- message "{@prefix} {@maincolour}Removed %arg 5% from %arg 2%'s permissions"
- else:
- message "{@prefix} {@maincolour}Error: Permission not specified"
- else if arg 4 is "g", "group" or "groups":
- if arg 5 is set:
- if {skperms::player::%arg 2%::groups::*} contains "%arg 5%":
- remove "%arg 5%" from {skperms::player::%arg 2%::groups::*}
- message "{@prefix} {@maincolour}Removed %arg 2% from group %arg 5%"
- if {@UseChat} is true:
- if {@ChatType} is "Display" or "display":
- loop all players where [{skperms::player::%player%::groups::*} contains "%arg 5%"]:
- if {skperms::group::%arg 5%::prefix} is set:
- if {skperms::group::%arg 5%::suffix} is set:
- set loop-player's display name to coloured "%{skperms::group::%arg 5%::prefix}%%loop-player%%{skperms::group::%arg 5%::suffix}%"
- else:
- set loop-player's display name to coloured "%{skperms::group::%arg 5%::prefix}%%loop-player%"
- else if {skperms::group::%arg 5%::suffix} is set:
- set loop-player's display name to coloured "%loop-player%%{skperms::group::%arg 5%::suffix}%"
- else:
- set loop-player's display name to "%player%"
- loop all players where [{skperms::player::%player%::groups::*} is not set]:
- set loop-player's display name to "%player%"
- else:
- message "{@prefix} {@maincolour}Error: Player %arg 2% doesn't have that group"
- else:
- message "{@prefix} {@maincolour}Error: Group not specified"
- else:
- message "{@prefix} {@maincolour}Error: Type not specified"
- else if arg 3 is "l" or "list":
- if arg 4 is "p", "permission" or "permissions":
- set {_player} to arg 2 parsed as player
- message "{@prefix} {@maincolour}%{_player}'s permissions%"
- else if arg 4 is "g", "group" or "groups":
- message "{@prefix} {@maincolour}%{skperms::player::%arg 2%::groups::*}%"
- else:
- message "{@prefix} {@maincolour}Error: Type not specified"
- else if arg 1 is "g", "group" or "groups":
- if arg 2 is not set:
- message "{@prefix} {@maincolour}Error: Group not specified"
- else if arg 2 is set:
- if arg 3 is "a" or "add":
- if arg 4 is "p", "permission" or "permissions":
- if arg 5 is set:
- if {skperms::groups::*} doesn't contain "%arg 2%":
- add "%arg 2%" to {skperms::groups::*}
- add "%arg 5%" to {skperms::group::%arg 2%::permissions::*}
- message "{@prefix} {@maincolour}Added %arg 5% to group %arg 2%'s permissions"
- loop all players where [{skperms::player::%player%::groups::*} contains "%arg 2%"]:
- loop {skperms::group::%arg 2%::permissions::*}:
- add "%loop-value-2%" to loop-player's permissions
- else:
- message "{@prefix} {@maincolour}Error: Permission not specified"
- else if arg 4 is "g", "group" or "groups":
- if arg 5 is set:
- if {skperms::groups::*} doesn't contain "%arg 2%":
- add "%arg 2%" to {skperms::groups::*}
- loop {skperms::group::%arg 5%::permissions::*}:
- add "%loop-value%" to {skperms::group::%arg 2%::permissions::*}
- message "{@prefix} {@maincolour}Added %arg 5%'s permissions to group %arg 2%"
- loop all players where [{skperms::player::%player%::groups::*} contains "%arg 2%"]:
- loop {skperms::group::%arg 2%::permissions::*}:
- add "%loop-value-2%" to loop-player's permissions
- else:
- message "{@prefix} {@maincolour}Error: Group not specified"
- else:
- message "{@prefix} {@maincolour}Error: Type not specified"
- else if arg 3 is "r" or "remove":
- if arg 4 is "p", "permission" or "permissions":
- if arg 5 is set:
- loop all players where [{skperms::player::%player%::groups::*} contains "%arg 2%"]:
- loop {skperms::group::%arg 2%::permissions::*}:
- remove "%loop-value-2%" from loop-player's permissions
- remove "%arg 5%" from {skperms::group::%arg 2%::permissions::*}
- message "{@prefix} {@maincolour}Removed %arg 5% from group %arg 2%'s permissions"
- loop all players where [{skperms::player::%player%::groups::*} contains "%arg 2%"]:
- loop {skperms::group::%arg 2%::permissions::*}:
- add "%loop-value-2%" to loop-player's permissions
- else:
- message "{@prefix} {@maincolour}Error: Permission not specified"
- else if arg 4 is "g", "group" or "groups":
- if arg 5 is set:
- loop all players where [{skperms::player::%player%::groups::*} contains "%arg 2%"]:
- loop {skperms::group::%arg 2%::permissions::*}:
- remove "%loop-value-2%" from loop-player's permissions
- loop {skperms::group::%arg 5%::permissions::*}:
- remove "%loop-value%" from {skperms::group::%arg 2%::permissions::*}
- add 1 to {_l}
- message "{@prefix} {@maincolour}Removed %{_l}% of %arg 5%'s permissions from group %arg 2%"
- loop all players where [{skperms::player::%player%::groups::*} contains "%arg 2%"]:
- loop {skperms::group::%arg 2%::permissions::*}:
- add "%loop-value-2%" to loop-player's permissions
- else:
- message "{@prefix} {@maincolour}Error: Group not specified"
- else:
- message "{@prefix} {@maincolour}Error: Type not specified"
- else if arg 3 is "l" or "list":
- if arg 4 is "p", "permission" or "permissions":
- message "{@prefix} {@maincolour}%{skperms::group::%arg 2%::permissions::*}%"
- else:
- message "{@prefix} {@maincolour}Error: Type not specified"
- else if arg 3 is "prefix" or "suffix":
- if arg 4 is "set":
- if arg 5 is set:
- set {skperms::group::%arg 2%::%arg 3%} to "%arg 5%"
- message "{@prefix} {@maincolour}%arg 3% set to %arg 5%"
- if {@UseChat} is true:
- if {@ChatType} is "Display" or "display":
- loop all players where [{skperms::player::%player%::groups::*} contains "%arg 5%"]:
- if {skperms::group::%arg 5%::prefix} is set:
- if {skperms::group::%arg 5%::suffix} is set:
- set loop-player's display name to coloured "%{skperms::group::%arg 5%::prefix}%%loop-player%%{skperms::group::%arg 5%::suffix}%"
- else:
- set loop-player's display name to coloured "%{skperms::group::%arg 5%::prefix}%%loop-player%"
- else if {skperms::group::%arg 5%::suffix} is set:
- set loop-player's display name to coloured "%loop-player%%{skperms::group::%arg 5%::suffix}%"
- else:
- set loop-player's display name to "%player%"
- loop all players where [{skperms::player::%player%::groups::*} is not set]:
- set loop-player's display name to "%player%"
- else:
- message "{@prefix} {@maincolour}Prefix/Suffix not specified"
- else:
- message "{@prefix} {@maincolour}Error: Type not specified (Type ""set"")"
- on quit:
- set {skperms::player::%player%::permissions::*} to player's permissions
- on join:
- loop 2 times:
- remove "%player%" from {skperms::players::*}
- add "%player%" to {skperms::players::*}
- loop {skperms::groups::*}:
- if player has permission "skperms.group.%loop-value%":
- if {skperms::player::%player%::groups::*} doesn't contain "%loop-value%":
- add "%loop-value%" to {skperms::player::%player%::groups::*}
- if {skperms::default} is set:
- loop {skperms::group::%{skperms::default}%::permissions::*}:
- add "%loop-value%" to player's permissions
- loop {skperms::player::%player%::permissions::*}:
- add "%loop-value%" to player's permissions
- if {skperms::player::%player%::groups::*} is not empty:
- loop {skperms::player::%player%::groups::*}:
- loop {skperms::group::%loop-value%::permissions::*}:
- add "%loop-value-2%" to player's permissions
- if {@UseChat} is true:
- if {@ChatType} is "Display" or "display":
- if {skperms::group::%loop-index%::prefix} is set:
- if {skperms::group::%loop-index%::suffix} is set:
- set player's display name to coloured "%{skperms::group::%loop-index%::prefix}%%player%%{skperms::group::%loop-index%::suffix}%"
- else:
- set player's display name to coloured "%{skperms::group::%loop-index%::prefix}%%player%"
- else if {skperms::group::%loop-index%::suffix} is set:
- set player's display name to coloured "%player%%{skperms::group::%loop-index%::suffix}%"
- else:
- set player's display name to "%player%"
- loop all players where [{skperms::player::%player%::groups::*} is not set]:
- set loop-player's display name to "%player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement