Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 「1」 What is your name: Jai
- 「2」 How old are you?: 11
- 「3」 Where are you from? (Country is enough) And Timezone: Australia, UTC+10:00
- 「4」 Tell us a little about yourself. (Min 20 words): I am one of the top in my class, I'm about to reach highschool. When i was born i had a condition known as sagittal suture chraniosstenosis, which is where a baby's skull is already fused like it is when the baby becomes a child, so i had to have a surgery when i was 10 months old and i got the first successful surgery without any problems, well at least thats the story as i know it.
- 「5」 For how long have you been skripting?: 1-2 Years
- 「6」 Are you familiar with skript? Which plugins do you know?: Skript, skquery, Tuske (learning), skjson, a little in skutilities
- 「7」 For how long have you used these plugins if you have used them?: Skript 1-2 years, Skquery 1-2 years, Tuske 1-3 months, skjson 6-12 months, skutilities 15-30 days
- 「9」 Give yourself your skript skill a rating from 0 - 10: 5/10
- 「10」 Give yourself a rating from 0 - 10, tell us some pros and cons about yourself as well: 7/10, i have adhd so i get told im annoying at school, and im seriously bullied, but I'm nice, carring, smart, good at music, well thats what my mum tells me
- 「11」 Post some of your previous skripts:
- Follow Skript Took 5 minutes:
- command /register [<text>]:
- trigger:
- if {registration::completed::%uuid of player%} is true:
- send "You can't register again!"
- else:
- set arg-1 to {Password::%uuid of player%}
- send "I have set your password to %arg-1%!"
- command /login [<text>]:
- trigger:
- if {Password::%uuid of player%} is true:
- send "You can't login again!"
- else:
- if arg-1 = {Password::%uuid of player%}:
- set {Password::%uuid of player%} to true
- send "You're now logged in!"
- on join:
- if {Password::%uuid of player%} is false:
- send "You need to login!"
- on any movement:
- if {Password::%uuid of player%} is false:
- cancel event
- send "You need to login first!
- on chat:
- if {Password::%uuid of player%} is false:
- cancel event
- send "You can't chat till you login!
- Following Skript 4-5 days took:
- options:
- CURRENT_VERSION: 1.1
- PASSWORD_MIN_CHARS: 6
- Almos: Almosium Core×
- every 15 minutes:
- loop all players:
- set {LAST_POS::%loop-player%} to loop-player's position
- wait a minute
- set {CURRENT_POS::%loop-player%} to loop-player's position
- if {LAST_POS::%loop-player%} = {CURRENT_POS::%loop-player%}:
- open chest with 3 rows named "%{@Almos}% Afk Check" to loop-player
- wait a tick
- format slot 12 of loop-player with green wool named "&a&lYes" to close
- format slot 14 of loop-player with red wool named "&c&lNo" with lore "||&7By clicking here, you||&7 will be &ckicked&7!||" to close
- wait 2 minutes
- KICK_PLAYER( loop-player )
- function LOG( s: text ):
- log "%now% -> %{_s}%" to file "plugins/Skript/scripts/Server Core Things/core.log"
- stop
- function KICK_PLAYER( p: player ):
- kick {_p} due to "%{@Almos}% %nl%%nl%&cWe do not allow people to be AFK!%nl%%nl%&7Want to have a talk with other players or with us? Come have a talk on our discord through /discord!"
- stop
- function SPAWN_ITEMS( p: player ):
- set slot 1 of {_p} to compass named "&8× &eServers &7(Right-Click)"
- stop
- function SEND_WELCOME_MESSAGE( p: player ):
- send "----------" to {_p}
- send "%{@Almos}% Welcome to &cAlmosium Network!" to {_p}
- send "You can use &f/help &eto list all the available commands." to {_p}
- send "If you need support, you can use &f/ticket &eand follow the steps!" to {_p}
- send "----------" to {_p}
- stop
- function CHECK_REGISTER_CLIENT( p: player ) :: boolean:
- if file "plugins/Skript/scripts/%uuid of {_p}%.yml" does not exist:
- return false
- set {REGISTER::%{_p}%} to false
- stop
- else:
- if yml value "password" of file "plugins/Skript/scripts/Server Core Things/%uuid of {_p}%.yml" is not empty:
- return true
- set {REGISTER::%{_p}%} to true
- stop
- else:
- return false
- stop
- return false
- stop
- function REGISTER_CLIENT( p: player, pw: text ):
- if {_pw} is not set:
- send " " to {_p}
- send "%{@Almos}% Passwords are encrypted, so you do not have to worry about security :)" to {_p}
- send " " to {_p}
- else:
- if length of {_pw} >= 6:
- set {PASSWORD::%{_p}%} to {_pw} hashed with SHA-256
- send " " to {_p}
- json( "%{_p}%", "%{@Almos}% Successfully registered! %nl%&e * Registered with password &a&lCLICK ME||ttp:%{_pw}%|| &eand encrypted to &a&lCLICK ME||ttp:%{PASSWORD::%{_p}%}%||" )
- send " " to {_p}
- set yml value "password" of file "plugins/Skript/scripts/Server Core Things/%uuid of {_p}%.yml" to {PASSWORD::%{_p}%}
- set {REGISTER::%{_p}%} to true
- else:
- send "%{@Almos}% Passwords must be greater than &7%{@PASSWORD_MIN_CHARS} - 1% &echaracters!" to {_p}
- while {PASSWORD::%{_p}%} is not set:
- send action bar "%{@Almos}% &eRegister with: &7/register <password>" to {_p}
- function LOGIN_CLIENT( p: player, pw: text ):
- if {REGISTER::%{_p}%} is true:
- set {_password} to yml value "password" of file "plugins/Skript/scripts/Server Core Things/uuid of %{_p}%.yml"
- if {_pw} hashed with SHA-256 = {_password}:
- if {LOGIN::%{_p}%} is false:
- send "%{@Almos}% Login was successfull!" to {_p}
- set {LOGIN::%{_p}%} to true
- else:
- send "%{@Almos}% You are already logged in!" to {_p}
- else:
- send "%{@Almos}% Password is &cincorrect&e, if you forgot your password contact us!" to {_p}
- function SET_PLAYER_TAGS( p: player ):
- set {RANKS::GROUP::%uuid of {_p}%} to yml value "group" of file "plugins/Skript/scripts/Server Core Things/%uuid of {_p}%.yml"
- set {_p} tab name to "%{RANKS::GROUP::%uuid of {_p}%}% %{_p}%"
- function SETUP_CLIENT_DIR( p: player ):
- if file "plugins/Skript/scripts/Server Core Things/%uuid of {_p}%.yml" does not exist:
- create file "plugins/Skript/scripts/Server Core Things/%uuid of {_p}%.yml"
- else:
- stop
- command /register [<text>]:
- trigger:
- REGISTER_CLIENT( player, arg-1 )
- command /login [<text>]:
- trigger:
- LOGIN_CLIENT( player, arg-1 )
- command /tag [<player>] [<text>]:
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- if arg-2 is "owner":
- set {RANKS::GROUP::%uuid of arg-1%} to "&cOwner"
- set {RANKS::COLOR::%uuid of arg-1%} to "&c"
- stop
- else if arg-2 is "developer":
- set {RANKS::GROUP::%uuid of arg-1%} to "&5Developer"
- set {RANKS::COLOR::%uuid of arg-1%} to "&5"
- stop
- else if arg-2 is "administrator":
- set {RANKS::GROUP::%uuid of arg-1%} to "&cAdmin"
- set {RANKS::COLOR::%uuid of arg-1%} to "&c"
- stop
- else if arg-2 is "moderator":
- set {RANKS::GROUP::%uuid of arg-1%} to "&aMod"
- set {RANKS::COLOR::%uuid of arg-1%} to "&a"
- stop
- else if arg-2 is "helper":
- set {RANKS::GROUP::%uuid of arg-1%} to "&9Helper"
- set {RANKS::COLOR::%uuid of arg-1%} to "&9"
- stop
- else if arg-2 is "mvp+":
- set {RANKS::GROUP::%uuid of arg-1%} to "&bMvp&6+"
- set {RANKS::COLOR::%uuid of arg-1%} to "&b"
- stop
- else if arg-2 is "mvp":
- set {RANKS::GROUP::%uuid of arg-1%} to "&bMvp"
- set {RANKS::COLOR::%uuid of arg-1%} to "&b"
- stop
- else if arg-2 is "vip+":
- set {RANKS::GROUP::%uuid of arg-1%} to "&aVip&6+"
- set {RANKS::COLOR::%uuid of arg-1%} to "&a"
- stop
- else if arg-2 is "vip":
- set {RANKS::GROUP::%uuid of arg-1%} to "&aVip"
- set {RANKS::COLOR::%uuid of arg-1%} to "&a"
- stop
- else if arg-2 is "member":
- set {RANKS::GROUP::%uuid of arg-1%} to "&7Default"
- set {RANKS::COLOR::%uuid of arg-1%} to "&7"
- stop
- else:
- send "%{@Almos}% You cannot execute this command! &7(Correct usage: /tag <player> <rank>)" to player
- stop
- else:
- send "%{@Almos}% You cannot execute this command! &7(Correct usage: /tag <player> <rank>)" to player
- stop
- command /tell [<player>] [<text>]:
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- if arg-1 is not executor:
- send "&cFrom %{RANKS::GROUP::%uuid of player%}%%player% &7-> &f%arg-2%" to arg-1
- send "%{@Almos}% Message sent!" to player
- stop
- else:
- send "%{@Almos}% You cannot send messages to yourself!" to player
- stop
- else:
- send "%{@Almos}% You cannot execute this command! &7(Correct usage: /tell <player> <message>)" to player
- stop
- else:
- send "%{@Almos}% You cannot execute this command! &7(Correct usage: /tell <player> <message>)" to player
- stop
- command /setspawn:
- trigger:
- if player is op:
- set {HUB::SPAWN.LOCATION} to player's location
- set yml value "spawn_location" of file "plugins/Skript/scripts/Server Core Things/config.yml" to player's location
- send "%{@Almos}% &7Spawn has been set. Success: &aYES" to player
- LOG( "Spawn set by %player%" )
- stop
- command /ping [<player>]:
- trigger:
- if arg-1 is not set:
- send "%{@Almos}% &eYour current ping is &a%player's ping%&ams" to player
- stop
- command /help:
- trigger:
- send " F"
- stop
- command /ticket:
- trigger:
- send " " to player
- send " &e* Please, select the Department you would like to get help off:" to player
- send " " to player
- json( "%player%", " &e* &fAdministration||cmd:/§admin_dep||ttp:&cCall the &7Administration &cdepartment." )
- json( "%player%", " &e* &fReports & Accusations||cmd:/§repacc_dep||ttp:&cCall the &7Reports & Accusations &cdepartment." )
- json( "%player%", " &e* &fForums Management||cmd:/§forums_dep||ttp:&cCall the &7Forums Management &cdepartment." )
- json( "%player%", " &e* &fClient Support||cmd:/§forums_dep||ttp:&cCall the &7Client Support &cdepartment." )
- send " " to player
- stop
- command /spawn:
- aliases: /sp
- trigger:
- teleport player to {HUB::SPAWN.LOCATION}
- send "%{@Almos}% Teleported to spawn!" to player
- stop
- on right click with compass:
- cancel event
- open chest with 6 rows named "%{@Almos}% &a&lServer Selector" to player
- wait a tick
- loop 54 times:
- if loop-value <= 9:
- set slot (loop-value - 1) of player's current inventory to gray stained glass pane named "&7"
- if loop-value >= 9:
- if mod( loop-value, 2 ) is 0:
- set slot loop-value of player's current inventory to gray stained glass pane named "&7"
- else:
- set slot loop-value of player's current inventory to red stained glass pane named "&7"
- if loop-value > 18:
- set slot loop-value of player's current inventory to air
- if loop-value > 25:
- if loop-value < 28:
- set slot loop-value of player's current inventory to gray stained glass pane named "&7"
- else if loop-value >= 35:
- if mod( loop-value - 1, 2 ) is 0:
- set slot loop-value of player's current inventory to gray stained glass pane named "&7"
- else:
- set slot loop-value of player's current inventory to red stained glass pane named "&7"
- if loop-value >= 46:
- set slot loop-value of player's current inventory to gray stained glass pane named "&7"
- on command "/plugins":
- cancel event
- send "%{@Almos}% For security reasons we do not allow you to see our plugins! If you want a custom plugin you can always contact me through &7Discord (&odopamine##1337&7)"
- stop
- on load:
- if file "plugins/Skript/scripts/Server Core Things/config.yml" does not exist:
- create file "plugins/Skript/scripts/Server Core Things/config.yml"
- create file "plugins/Skript/scripts/Server Core Things/messages.yml"
- create file "plugins/Skript/scripts/Server Core Things/core.log"
- create file "plugins/Skript/scripts/Server Core Things/permissions.yml"
- LOG( "Main files created!" )
- set yml value "spawn_location" of file "plugins/Skript/scripts/Server Core Things/config.yml" to "0, 0, 0"
- LOG( "Default values have been initialized!" )
- if size of directory "plugins/Skript/scripts/Server Core Things/%uuid of player%.yml" in bytes > 1:
- LOG( "Loaded client registrations!" )
- else:
- LOG( "No client registrations found, therefore they have not been loaded!" )
- stop
- else:
- set {HUB::SPAWN.LOCATION} to yml value "spawn_location" of file "v"
- stop
- on join:
- set join message to ""
- if player is op:
- CHECK_UPDATES( player )
- if {HUB::SPAWN.LOCATION} is not "0, 0, 0":
- SPAWN_ITEMS( player )
- teleport player to {HUB::SPAWN.LOCATION}
- LOG( "%player% joined the server! ##FF-404SP: FALSE" )
- SEND_WELCOME_MESSAGE( player )
- SET_PLAYER_TAGS( player )
- SETUP_CLIENT_DIR( player )
- if CHECK_REGISTER_CLIENT( player ) is false:
- send "%{@Almos}% Register your account with &7/register <password>" to player
- stop
- else:
- if player is op:
- send "%{@Almos}% Spawn has not been set yet, therefore players cannot join your server. &7/setspawn" to player
- stop
- teleport player to location at 0, 9999, 0 # X Y Z
- set player's flight mode to true
- send "%{@Almos}% An internal error has occured, therefore you won't be able to play. &7Please notify the server &4&oAdministrator&7." to player
- LOG( "%player% joined the server! ##FF-404SP: TRUE" )
- wait 5 seconds
- kick player due to "%{@Almos}% %nl%%nl%&cAn internal error has occured, therefore you won't be able to play.%nl%%nl%&7Please notify the server &4&oAdministrator&7.%nl%%nl%&7Code: &f##FF-404SP"
- stop
- on quit:
- set quit message to ""
- set yml value "group" of file "plugins/Skript/scripts/Server Core Things/%uuid of player%.yml" to {RANKS::GROUP::%uuid of player%}
- LOG( "%player% left the server!" )
- stop
- on chat:
- cancel event
- broadcast "%{RANKS::COLOR::%player%}%[%{RANKS::GROUP::%player%}%%{RANKS::COLOR::%player%}%] %player%&f: %message%"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement