Advertisement
Guest User

Untitled

a guest
Dec 24th, 2018
1,708
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.34 KB | None | 0 0
  1. #The plugin now supports 2 types of 2fa: standard (Google Authenticator) based 2fa,
  2. #as well as the Yubikey.
  3.  
  4. #'2fa'- "Google Authenticator" type 2fa
  5. #'yubikey' - Yubikey based authentication
  6.  
  7. #To enable/disable each type of authentication, simply comment/uncomment each line
  8. #in question
  9. authenticators:
  10. - "2fa"
  11. #- "yubikey"
  12.  
  13. #Yubikey configuration: Only needs to be filled in if you are using yubikey auth
  14. yubikey:
  15. clientId: -1 #Your client id
  16. clientSecret: secret #Your client secret
  17.  
  18. #2fa configuration: Only needs to be filled in if you are using 2fa auth
  19. 2fa:
  20. #This is the key that will be by default displayed in the user's authentication
  21. #app. This may be whatever you want, but we suggest making it your server name
  22. #or some other identifier.
  23. serverIp: "mc.minecraftrevolution.net"
  24.  
  25. #If this option is true, the plugin will not factor into account the last IP of the player, and will force the player to
  26. #log in each time they are authenticated
  27. forceSameIPAuthentication: false
  28.  
  29. #If this option is false, the plugin will not tamper with the player inventory, and all authentication will be chat based.
  30. #If this option is true, the plugin will stash away the player inventory and display the QR code in a map.
  31. #Leaving this option at true is recommended but may conflict with other inventory manager plugins.
  32. inventoryTampering: true
  33.  
  34. #Sets the bungee configuration parameters. If bungee is enabled, players will only need to authenticate once on one of
  35. #servers
  36. bungee:
  37. # Whether bungee mode is enabled. Plugin must be on bungee server with same channel
  38. enabled: false
  39. # Channel to send messages over. Must be same on Bungee
  40. channel: "MCAuthenticator"
  41.  
  42. dataBacking:
  43. # This plugin supports 3 independant datastorage mechanisms. At the current time, there is no way to convert between the
  44. # two, however, this may be added in the future.
  45.  
  46. #Types:
  47. # - single: Saves all data in one single file. Good for most installations
  48. # - directory: Saves each player in their own file within a directory
  49. # - mysql: Saves each player's data within a mysql database
  50. type: single
  51.  
  52. #If type is single, this specifies which file to save it in.
  53. file: "playerData.json"
  54.  
  55. #If type is directory, this specifies which directory to save the data in.
  56. directory: "playerData"
  57.  
  58. #If type is mysql, this specifies login details
  59. mysql:
  60. url: "jdbc:mysql://localhost:3306/db"
  61. username: "test"
  62. password: "test"
  63. queryTimeout: 5
  64.  
  65. #Messages section. Each message uses standard '&' color codes.
  66. #A message can be split into multiple lines using the \n character.
  67. messages:
  68. prefix: "&8[&4Auth&8] "
  69.  
  70. #Displayed in normal use
  71. authenticationPrompt: "&4This account has 2FA enabled on it. Please enter your authentication code."
  72. ipPreAuthenticated: "&7You are already authenticated since your IP matched your last log in IP."
  73.  
  74. notAuthed: "&4You are not authenticated! Please enter your 2FA code."
  75. authenticated: "&7You have been authenticated"
  76. authFailed: "&4That was not a valid code. You are not yet authenticated."
  77.  
  78.  
  79. #Displayed after successful commands
  80.  
  81. selfDisabled: "&cYou have disabled 2FA on your account."
  82. selfReset: "&cYou have reset 2FA on your account. Please enter the code shown on your device from the new code."
  83.  
  84. #Other Success
  85. otherEnable: "&4%player%&c has enabled 2FA on your account!"
  86. otherDisable: "&4%player%&c has disabled 2FA on your account!"
  87. otherReset: "&4%player%&c has reset the 2FA on your account!\n &4Please enter the code generated by the app from the QR code."
  88.  
  89. #Command errors
  90. alreadyEnabled: "&cYou already have 2FA enabled!"
  91. alreadyDisabled: "&cYou already have 2FA disabled!"
  92. disableForced: "&cYou are not permitted to disable 2FA on your account!"
  93. resetDisabled: "&cYour account has 2FA disabled."
  94. resetNotAuthed: "&cYou cannot reset your account until you authenticate!"
  95. resetForced: "&cYou are not permitted to reset 2FA on your account!"
  96.  
  97. #Gauth specific messages
  98. sendAuthCode: "&7This server has 2FA support enabled. Your temporary code is\n&7%code%\n&7which is also viewable at\n&8%url%\n&7To use 2FA, enter the code generated by your device:"
  99.  
  100. #Yubikey specific messages
  101. yubikeyInitPrompt: "&7This server has Yubikey support enabled for your 2FA! You may set up 2FA for this account by pressing your yubikey in the chat box:"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement