Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {%player%.logged} is not set:
- set {%player%.move} to false
- set walk speed of player to 0
- send "&7&l---------------------------------------------" to player
- send "&f&l TNTSPLEEF " to player
- send "&f&l Make your enemies turn into powder! " to player
- send "&7&l---------------------------------------------" to player
- send " " to player
- send "&6&l Please login using &f&l/login <password> " to player
- send "&6&l Don't have an account? " to player
- send "&f Register using &l/register <password>&f!" to player
- send "&7&l---------------------------------------------" to player
- command /register [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "&cMake sure you have entered your desired &lpassword&6!" to player
- if arg 1 is set:
- if arg 2 is not set:
- if {%player%.password} is not set:
- send "&2You have successfuly created a new &aaccount&2! Your password is: &a%arg 1%" to player
- send "&2You can also set a recovery code! Type &a/rcode <code> &2to set the recovery code!" to player
- send "&2Using this code you will be able to reset your password in case you forgot it!" to player
- set {%player%.password} to "%arg 1%"
- set walk speed of player to 0.3
- set {%player%.logged} to true
- else:
- send "&cHey! Don't you remember? You have already registered an account!" to player
- else:
- send "&cDon't type it twice! it's to annyoing to type it twice!" to player
- command /login [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "&cMake sure you have entered your password!" to player
- send "&cForgot your password? Don't worry! Use your recovery code using &l/rauth <yourCode>&c!" to player
- if arg 1 is set:
- arg 2 is not set:
- if {%player%.password} is set:
- if {%player%.password} is arg 1:
- if {%player%.logged} is not set:
- send "&2Ahhh, there you are! Nice to see you back!" to player
- set walk speed of player to 0.3
- set {%player%.logged} to true
- else:
- send "&2Well... And i thought you are logged already..." to player
- else:
- send "&cHey! I'm sorry, but this is not your password!" to player
- send "&cTry to enter correct password again!" to player
- else:
- send "&6Ho ho ho... Not so fast! Register an account first!" to player
- send "&6Use command &l/register <password>&6 to register an account!" to player
- else:
- send "&cJust don't type it twice! It's silly!" to player
- else:
- send "&cYou should enter your password i guess... It's just an advice... I won't let you play until you do that! I promise!" to player
- command /rcode [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "&cTry entering a new recovery code! It won't hurt you!" to player
- else:
- if arg 2 is not set:
- {%player%.rcode} is not set:
- {%player%.logged} is true:
- send "&2You're awesome! Now you can reset your password anytime you want!" to player
- set {%player%.rcode} to arg 1
- else:
- send "&cNope! Log in first!" to player
- else:
- send "&cRecovery password can't be changed, so i hope you remeber it!" to player
- else:
- send "&cYou're crazy! Don't, don't, don't... Just don't type it twice!" to player
- command /rauth [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "&cWell... It would be good if you entered your recovery code." to player
- else:
- if arg 1 is not set:
- {%player%.rcode} is set:
- set {_number} to random number between 1000 and 9999
- send "&2Your new password is &a%{_number}%&2!" to player
- set {%player%.password} to {_number}
- else:
- send "&cYou haven't set your code already!" to player
- else:
- send "&cRight... I was telling you all the time, but it seems to be useless... Don't type it twice!" to player
- on chat:
- if {%player%.logged} is false:
- cancel event
- if {%player%.logged} is not set:
- cancel event
- on disconnect:
- delete {%player%.logged}
- on damage:
- victim is a player:
- {%victim%.logged} is not set:
- cancel event
- {%victim%.logged} is not set:
- cancel event
- on drop:
- if {%player%.logged} is false:
- cancel event
- if {%player%.logged} is not set:
- cancel event
- on any movement:
- {%player%.logged} is false:
- cancel event
- {%player%.logged} is not set:
- cancel event
- on command:
- command is "login" or "register":
- add 1 to {_nothing}
- else:
- {%player%.logged} is false:
- cancel event
- {%player%.logged} is not set:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment