Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 KB | None | 0 0
  1. package me.sLogin.Config;
  2.  
  3. import java.io.File;
  4.  
  5. import net.cubespace.Yamler.Config.Comment;
  6. import net.cubespace.Yamler.Config.Comments;
  7. import net.cubespace.Yamler.Config.Config;
  8. import net.md_5.bungee.api.plugin.Plugin;
  9.  
  10. @SuppressWarnings("deprecation")
  11. public class Database extends Config {
  12.  
  13. public Database(Plugin plugin) {
  14. CONFIG_FILE = new File(plugin.getDataFolder(), "Config.yml");
  15. CONFIG_HEADER = new String[] { "Here you can set all the things that will make the plugin work" };
  16. }
  17.  
  18. @Comment("Here you will set the user that you use to login in your mysql")
  19. public String User = "User";
  20. @Comment("Here you will set the password that you use to login in your mysql")
  21. public String Password = "Password";
  22. @Comment("Here you will set the database that you use in your mysql")
  23. public String Database = "Database";
  24. @Comment("Here you will set the ip that you use to login in your mysql")
  25. public String Host = "Host";
  26. @Comment("Here you will put your lobby server, it will be used as auth server")
  27. public String Lobby = "Lobby";
  28. @Comment("Here you will put the max ammount of accounts any player can have per ip")
  29. public int MaxAccountPerIp = 2;
  30. @Comments({ "Bellow you will see all messages, if you want to change just change it", "Here you will put the no permission for commands message" })
  31. public String NoPermissionMessage = "&cDesculpe, mas você não tem permissão para executar este comando. Entre em contato com os administradores do servidor se você acredita que isso é um erro.";
  32. @Comment("Here you will put the player is not registered message")
  33. public String PlayerNotRegistered = "&cEste jogador não está registrado no banco de dados do servidor.'";
  34. @Comment("Here you will put the change password success message")
  35. public String PasswordChangeSuccess = "&aVocê alterou a senha do jogador mencionado com sucesso!";
  36. @Comment("Here you will put the change password fail message")
  37. public String PasswordChangeFail = "&cHouve uma falha ao tentar alterar a senha deste jogador.";
  38. @Comment("Here you will put the message when a player has an invalid nickname")
  39. public String InvalidNickaname = "&cVocê possui um apelido invalido, por favor troque-o para liberar seu acesso.";
  40. @Comment("Here you will put the message when a player nickname is already online")
  41. public String PlayerAlreadyOnline = "&cJá existe outro jogador com este mesmo apelido online no momento.";
  42. @Comment("Here you will put the message when a player took a long time to login or register")
  43. public String TookALongTimeToLogOrRegister = "&cO tempo de autenticação expirou.";
  44. @Comment("Here you will put the message when a player tries to make commands but is not logged in")
  45. public String PlayerNotLoggedInInteract = "&cVocê não pode executar comandos sem estar autenticado.";
  46. @Comment("Here you will put the message when a player tries to login but is not registered")
  47. public String LoginButIsNotReg = "&fArgumentos invalidos, utilize: &a/register <senha>";
  48. @Comment("Here you will put the message when a player logs in successfully")
  49. public String LoginSuccess = "&aVocê foi autenticado com sucesso.";
  50. @Comment("Here you will put the message when a player login fail!")
  51. public String LoginFail = "&cA senha digitada está incorreta.";
  52. @Comment("Here you will put the message when a player tries to register but he is already registered!")
  53. public String AlreadyRegistered = "&cVocê tem um cadastro em nosso banco de dados.";
  54. @Comment("Here you will put the message when a player tries to register but he has already more then the accounts registered")
  55. public String RegisterNumberMaxAccountsReached = "&cJá existe muitas contas registradas em seu endereço IP.";
  56. @Comment("Here you will put the message when a player registers successfully")
  57. public String RegisterSuccess = "&aVocê foi autenticado com sucesso, caso não lembre sua senha, contate um administrador.";
  58. @Comment("Here you will put the message when a player is already logged in")
  59. public String AlreadyLoggedIn = "&aVocê já está autenticado.";
  60. @Comment("Here you will put the message when a player tries to register but is already registered and is not logged in")
  61. public String AlreadyRegisteredButNotLoggedIn = "&fArgumentos invalidos, utilize: &a/login <senha>";
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement