Antowskyy

Configuration for antAuth

Oct 9th, 2024 (edited)
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.98 KB | None | 0 0
  1. # Login for MYSQL
  2. database:
  3. host: mysql.example.com # Host for the MySQL database
  4. port: '3306' # Port for the MySQL database
  5. base: db # Database name
  6. user: user # Username for MySQL database
  7. password: passwd # Password for MySQL database
  8.  
  9. # Auth settings
  10. # auth-server - Server Auth
  11. # lobby-server - Server Lobby
  12. # admin-permission - Permission admin for command /auth
  13. #
  14. # Queue settings
  15. # max_connection_time - Time for maximum connection duration
  16. # priorities - Priorities for queue
  17. # Example:
  18. # queue.premium: 1 -> highest
  19. # queue.admin: 2 -> lowest
  20. auth-settings:
  21. maxaccountip: 3 # Max accounts per IP
  22. auth-server: auth # Server for authentication
  23. lobby-server: lobby # Server for lobby
  24. admin-permission: antauth.admin # Admin permission for command /auth
  25. queue:
  26. max-connection-time: 5 # Max time to connect to the server
  27. max-retries: 3 # Max retries to connect to the server
  28. priorities:
  29. queue.admin: 1 # Priority level for admins (highest)
  30. queue.premium: 2 # Priority level for premium users
  31. queue.default: 3 # Priority level for default users (lowest)
  32.  
  33. # Motd settings
  34. # Variables:
  35. # playersInfo:
  36. # - {ONLINE_PLAYERS} - Online players
  37. # - {MAX_PLAYERS} - Max Players
  38. # hoverLines:
  39. # - {PROXY_CPU_USAGE} - CPU Usage
  40. # - {COUNTER_PLAYERS_LIMIT}
  41. motd:
  42. first-line: "&8>> &7Plugin for authentication &6BUNGEECORD" # First line of the MOTD
  43. second-line: "&8>> &7Created by &6Antowksyy" # Second line of the MOTD
  44. third-line: "&6antAuth" # Third line of the MOTD
  45. playersInfo: "&e{ONLINE_PLAYERS}&8/&6{MAX_PLAYERS}" # Info players
  46. # Hover text for plugin info
  47. hoverLines:
  48. - ""
  49. - "&8>> &6antAuth"
  50. - "&8>> &7Version&8: &61.0-SNAPSHOT"
  51. - ""
  52. - "&8>> &7CPU Usage&8: &6{PROXY_CPU_USAGE}%"
  53. - "&8>> &7Limit Players&8: &6{COUNTER_PLAYERS_LIMIT}"
  54. - ""
  55. maxPlayersCount: 300 # Max players count allowed
  56. maxPlayersCount-status: false # Status of max players count on motd
  57.  
  58. # Messages auth
  59. messages:
  60. # Variables queue:
  61. # - {POSITION} - Position in the queue
  62. # - {TIME} - Time for connecting to the server
  63. queue:
  64. waiting: "&8>> &7You are &e{POSITION} &7in the queue! &8<<" # Message for waiting in queue
  65. sending: "&8>> &eYou will be sent to the server shortly. &8<<" # Message for sending player to server
  66. connecting: "&8>> &aAttempting to connect to the server... &e({TIME}) &8<<" # Message for connecting to server
  67. connection-failed: "&8>> &cFailed to connect to the target server! Retrying connection... &8<<" # Message for connection failure
  68. success-connect: "&8>> &aSuccess connected to lobby &8<<"
  69. max-retries-kick: "&cCould not connect to the lobby, {RETRYCOUNT} attempts made."
  70. usage:
  71. # [TITLE] - Send title to player
  72. # "[TITLE] title|subtitle|stay"
  73. # Example: "[TITLE] &eTITLE|&aSUBTITLE|5"
  74. # [MESSAGE] - Send message to player
  75. # "[MESSAGE] message"
  76. # Example: "[MESSAGE] &eMessage!"
  77. register:
  78. - "[TITLE] &6antAuth|&8>> &7Register&8: &e/register [password] [password]|3"
  79. - "[MESSAGE] &6antAuth &8>> &7Register&8: &e/register [password] [password]"
  80. login:
  81. - "[TITLE] &6antAuth|&8>> &7Login&8: &e/login [password]|3"
  82. - "[MESSAGE] &6antAuth &8>> &7Login&8: &e/login [password]"
  83. admin:
  84. changepassword: "&6antAuth &8>> &7Correct usage&8: &e/auth changepassword [player] [password]" # Usage instruction for admin to change password
  85. unregister: "&6antAuth &8>> &7Correct usage&8: &e/auth unregister [player]" # Usage instruction for admin to unregister a player
  86. info: "&6antAuth &8>> &7Correct usage&8: &e/auth info [player]" # Usage instruction for admin to get player info
  87. help:
  88. - ""
  89. - " &6antAuth "
  90. - ""
  91. - "&e/auth changepassword [player] [password] &8- &7Change player password" # Help for changing password
  92. - "&e/auth unregister [player] &8- &7Unregister player" # Help for unregistering a player
  93. - "&e/auth info [player] &8- &7Player information" # Help for getting player info
  94. - "&e/auth reload &8- &7Reload configuration" # Help for reloading configuration
  95. - ""
  96. user:
  97. unregister: "&6antAuth &8>> &7Correct usage&8: &e/unregister [password] [password]" # Usage instruction for user to unregister
  98. register: "&6antAuth &8>> &7Correct usage&8: &e/register [password] [password]" # Usage instruction for user to register
  99. login: "&6antAuth &8>> &7Correct usage&8: &e/login [password]" # Usage instruction for user to login
  100. changepassword: "&6antAuth &8>> &7Correct usage&8: &e/changepassword [password] [new password]" # Usage instruction for user to change password
  101. success:
  102. createUser: "&aUser successfully created, please rejoin the server!" # Success message for user creation
  103. # [TITLE] - Send title to player
  104. # "[TITLE] title|subtitle|stay"
  105. # Example: "[TITLE] &eTITLE|&aSUBTITLE|5"
  106. # [MESSAGE] - Send message to player
  107. # "[MESSAGE] message"
  108. # Example: "[MESSAGE] &eMessage!"
  109. logged:
  110. - "[TITLE] &6antAuth|&8>> &aSuccessfully logged in!|3"
  111. - "[MESSAGE] &6antAuth &8>> &aSuccessfully logged in!"
  112. registered:
  113. - "[TITLE] &6antAuth|&8>> &aSuccessfully registered!|3"
  114. - "[MESSAGE] &6antAuth &8>> &aSuccessfully registered!"
  115. premium-logged:
  116. - "[TITLE] &6antAuth|&8>> &aSuccessfully logged in with premium!|3"
  117. - "[MESSAGE] &6antAuth &8>> &aSuccessfully logged in with premium!"
  118. commands:
  119. admin:
  120. unregister:
  121. playerKick: "&6antAuth &8>> &7You have been unregistered by &e{ADMIN}" # Message for player kicked by admin
  122. adminMsg: "&6antAuth &8>> &aSuccessfully unregistered player {PLAYER}" # Message for admin after unregistering a player
  123. changepassword:
  124. playerMsg: "&6antAuth &8>> &7Your password was changed by &c{ADMIN}" # Message for player after password change by admin
  125. adminMsg: "&6antAuth &8>> &aSuccessfully changed password for player &e{PLAYER}" # Message for admin after changing player's password
  126. reload: "&6antAuth &8>> &aSuccessfully reloaded configuration!" # Message for reloading configuration
  127. info:
  128. # Variables info player:
  129. # - {PLAYER} - Player nickname
  130. # - {UUID} - Player UUID
  131. # - {PREMIUM} - Player premium status
  132. # - {LASTIP} - Player last IP
  133. - ""
  134. - " &6antAuth "
  135. - ""
  136. - "&8>> &7Name&8: &e{PLAYER}"
  137. - "&8>> &7UUID&8: &e{UUID}"
  138. - "&8>> &7Status premium&8: &e{PREMIUM}"
  139. - "&8>> &7Last ip&8: &e{LASTIP}"
  140. - ""
  141. user:
  142. changepassword: "&6antAuth &8>> &aPassword successfully changed!" # Message for user after changing password
  143. unregister: "&6antAuth &8>> &aYou have successfully unregistered!" # Message for user after unregistering
  144. error:
  145. # Variables error:
  146. # connectCooldown:
  147. # - {TIME} - Time to wait connection again
  148. # playerOnline:
  149. # - {PLAYER} - Player already online on the server
  150. # errorNickname:
  151. # - {NAME} - Correct name
  152. userError: "&6antAuth &8>> &cAn error occurred while loading player information!" # Error message for user loading issue
  153. invalidName: "&6antAuth &8>> &cYour nickname contains invalid characters!" # Error message for invalid nickname
  154. connectCooldown: "&6antAuth &8>> &cYou are connecting too fast, please wait &e{TIME}" # Error message for connection cooldown
  155. playerOnline: "&6antAuth &8>> &cThe player with the nickname &e{PLAYER} &cis already on the server!" # Error message for player already online
  156. errorNickname: "&6antAuth &8>> &cYour correct nickname is &e{NAME}" # Error message for incorrect nickname
  157. notLogged: "&6antAuth &8>> &cYou must log in to execute the given command!" # Error message for not logged in
  158. notRegistered: "&6antAuth &8>> &cYou must register to execute the given command!" # Error message for not registered
  159. userLogged: "&6antAuth &8>> &cYou are already logged in!" # Error message for already logged in
  160. userRegistered: "&6antAuth &8>> &cYou are already registered!" # Error message for already registered user
  161. timeoutLogin: "&6antAuth &8>> &cLogin time has expired!" # Error message for login timeout
  162. passwordSame: "&6antAuth &8>> &cThe passwords entered are the same!" # Error message for same passwords
  163. passwordsNotsame: "&6antAuth &8>> &cThe passwords entered are not the same!" # Error message for different passwords
  164. passwordIncorrect: "&6antAuth &8>> &cThe password entered is incorrect!" # Error message for incorrect password
  165. userNotRegistered: "&6antAuth &8>> &cYou aren't registered!" # Error message for not registered user
  166. userisPremium: "&6antAuth &8>> &cPremium players cannot use this command!" # Error message for premium users
  167. maxAccountsIP: "&6antAuth &8>> &cYou cannot register because, you have exceeded the account limit!" # Error message for max accounts per IP
  168. noPermission: "&6antAuth &8>> &cYou don't have permission to execute this command!" # Error message for no permission
  169. adminUserError: "&6antAuth &8>> &cThe specified player wasn't found!" # Error message for admin user not found
  170. adminUserPremium: "&6antAuth &8>> &cThe specified player has premium!" # Error message for admin user is premium
  171. adminUserNotRegistered: "&6antAuth &8>> &cThe specified player is not registered!" # Error message for admin user is not registered
  172.  
  173.  
  174.  
  175.  
Advertisement
Add Comment
Please, Sign In to add comment