Advertisement
Guest User

ADDONLOGIN

a guest
Aug 30th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 KB | None | 0 0
  1. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  2. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  3. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  4. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  5. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  6. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  7. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  8. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  9. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  10. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  11. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  12. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  13. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  14. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  15. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  16. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  17. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  18. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  19. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  20. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  21. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  22. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  23. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  24. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  25. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  26. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  27. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  28. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  29. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  30. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  31. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  32. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  33. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  34. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  35. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  36. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  37. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  38. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  39. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  40. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  41. #===============[EDIT IN HUBADVANCED/PLAYERS]===============#
  42. options:
  43. P: &6HUB ADVANCED
  44. #===============[EVENTS NO EDIT]===============#
  45. on load:
  46. if folder "plugins/HubAdvanced/Players" doesn't exists:
  47. create folder "plugins/HubAdvanced/Players"
  48. on load:
  49. wait 20 tick
  50. send "{@P} ADDON LOADED" to console
  51. on join:
  52. set {conectar.%player%} to true
  53. if {login.ip.%player%} is player's ip:
  54. message "{@P}&7 Cargando...."
  55. wait 2 seconds
  56. teleport player to {hub}
  57. delete {conectar.%player%}
  58. stop
  59. loop 20 times:
  60. wait 10 seconds
  61. message "&8[&7----------{@P}&7----------&8]"
  62. message "{@P}&7 Register /register pass pass"
  63. message "{@P}&7 Login /login pass"
  64. if {login.en.cours.%player%} isn't set:
  65. exit loop
  66. on any move:
  67. if {conectar.%player%} is true:
  68. cancel event
  69. on chat:
  70. if {conectar.%player%} is true:
  71. cancel event
  72. message "{@P} &4Need First Login!"
  73. on command:
  74. if "%command%" contains "login":
  75. stop
  76. if "%command%" contains "register":
  77. stop
  78. if {conectar.%player%} is true:
  79. cancel event
  80. message "{@P} &4Need First Login!"
  81. #===============[LOGIN COMMAND NO EDIT]===============#
  82. command /login <text>:
  83. trigger:
  84. if {conectar.%player%} is true:
  85. if {Login.password.%player%} is set:
  86. if {Login.password.%player%} is arg-1:
  87. message "{@P}&a Logged Correctly!."
  88. wait 2 seconds
  89. make player execute command "/hub"
  90. delete {login.en.cours.%player%}
  91. stop
  92. else:
  93. send "{@P}&4 WRONG PASSWORD!"
  94. else:
  95. send "{@P}&c Need Register /regsiter Pass Pass"
  96. #===============[REGISTER COMMAND NO EDIT]===============#
  97. command /register <text> <text>:
  98. trigger:
  99. if arg 1 = arg 2:
  100. create file "plugins/HubAdvanced/Players/%player%.yml"
  101. set {Login.password.%player%} to arg 1
  102. set "Usuario: to "%player%" in yaml file "plugins/HubAdvanced/Players/%player%.yml"
  103. set "Pass" to arg 1 in yaml file "plugins/HubAdvanced/Players/%player%.yml"
  104. set "Ip" to player's ip in yaml file "plugins/HubAdvanced/Players/%player%.yml"
  105. if {conectar.%player%} is true:
  106. if {Login.password.%player%} is set:
  107. message "{@P}&4 Nesesitas Loggearte!"
  108. else if arg-1 is arg-2:
  109. message "{@P}&7 Registrado!"
  110. set {Login.password.%player%} to arg-1
  111. set {Login.ip.%player%} to player's ip
  112. delete {conectar.%player%}
  113. else:
  114. message "{@P}&c The two Password Is Security Down Your Own Risk"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement