Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
- options:
- P: &6HUB ADVANCED
- #===============[EVENTS NO EDIT]===============#
- on load:
- if folder "plugins/HubAdvanced/Players" doesn't exists:
- create folder "plugins/HubAdvanced/Players"
- on load:
- wait 20 tick
- send "{@P} ADDON LOADED" to console
- on join:
- set {conectar.%player%} to true
- if {login.ip.%player%} is player's ip:
- message "{@P}&7 Cargando...."
- wait 2 seconds
- teleport player to {hub}
- delete {conectar.%player%}
- stop
- loop 20 times:
- wait 10 seconds
- message "&8[&7----------{@P}&7----------&8]"
- message "{@P}&7 Register /register pass pass"
- message "{@P}&7 Login /login pass"
- if {login.en.cours.%player%} isn't set:
- exit loop
- on any move:
- if {conectar.%player%} is true:
- cancel event
- on chat:
- if {conectar.%player%} is true:
- cancel event
- message "{@P} &4Need First Login!"
- on command:
- if "%command%" contains "login":
- stop
- if "%command%" contains "register":
- stop
- if {conectar.%player%} is true:
- cancel event
- message "{@P} &4Need First Login!"
- #===============[LOGIN COMMAND NO EDIT]===============#
- command /login <text>:
- trigger:
- if {conectar.%player%} is true:
- if {Login.password.%player%} is set:
- if {Login.password.%player%} is arg-1:
- message "{@P}&a Logged Correctly!."
- wait 2 seconds
- make player execute command "/hub"
- delete {login.en.cours.%player%}
- stop
- else:
- send "{@P}&4 WRONG PASSWORD!"
- else:
- send "{@P}&c Need Register /regsiter Pass Pass"
- #===============[REGISTER COMMAND NO EDIT]===============#
- command /register <text> <text>:
- trigger:
- if arg 1 = arg 2:
- create file "plugins/HubAdvanced/Players/%player%.yml"
- set {Login.password.%player%} to arg 1
- set "Usuario: to "%player%" in yaml file "plugins/HubAdvanced/Players/%player%.yml"
- set "Pass" to arg 1 in yaml file "plugins/HubAdvanced/Players/%player%.yml"
- set "Ip" to player's ip in yaml file "plugins/HubAdvanced/Players/%player%.yml"
- if {conectar.%player%} is true:
- if {Login.password.%player%} is set:
- message "{@P}&4 Nesesitas Loggearte!"
- else if arg-1 is arg-2:
- message "{@P}&7 Registrado!"
- set {Login.password.%player%} to arg-1
- set {Login.ip.%player%} to player's ip
- delete {conectar.%player%}
- else:
- message "{@P}&c The two Password Is Security Down Your Own Risk"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement