Skip to content
This repository was archived by the owner on Jun 18, 2023. It is now read-only.

Messages

pavlyi1 edited this page May 29, 2021 · 6 revisions

The first time you run the plugin AuthTools, the plugin creates a messages.yml file in the plugins/AuthTools folder, with which you can change messages.

###################################
#                                 #
#   AuthTools                     #
#                                 #
#   Author: Pavlyi                #
#   Website: http://pavlyi.eu     #
#                                 #
###################################

noPermissions: "&f[&cAuthTools&f] &fNo permissions!"
pluginReloaded: "&f[&cAuthTools&f] &cAuthTools &fconfiguration was reloaded!"
playerNotFound: "&f[&cAuthTools&f] &c%player% &fwas not found!"
onlyPlayerCanExecuteCommand: "&f[&cAuthTools&f] &fOnly player can execute this command!"

commands:
    authtools:
        helpusage:
        - ""
        - " &f&m-------------------------------"
        - "            &cAuthTools"
        - ""
        - " &f- &c/authtools &f| &cShows help"
        - " &f- &c/authtools reset <player> [2fa/mail] &f| &cResets user's 2FA/Mail"
        - " &f- &c/authtools backend <type> &f| &cChanges connection type"
        - " &f- &c/authtools info <player> &f| &cShows a realtime info about user"
        - " &f- &c/authtools setspawn &f| &cSets a spawn location"
        - " &f- &c/authtools setlobby &f| &cSets a lobby location"
        - " &f- &c/authtools import <backend> &f| &cImports data from a backend to another backend"
        - " &f- &c/authtools about &f| &cShows a info about plugin"
        - " &f- &c/authtools reload &f| &cReloads a plugin"
        - ""
        - "        &fPlugin by: &cPavlyi"
        - ""
        - " &f&m-------------------------------"
        - ""

        about:
        - ""
        - " &f&m-------------------------------"
        - "            &cAuthTools"
        - ""
        - " &f- &cVersion: &f%version% &c%is_update_needed%"
        - " &f- &cConnection: &f%connection%"
        - ""
        - "        &fPlugin by: &cPavlyi"
        - ""
        - " &f&m-------------------------------"
        - ""

        info:
        - ""
        - " &f&m-------------------------------"
        - "            &cAuthTools"
        - ""
        - " &f- &cPlayer: &f%player%"
        - " &f- &cUUID: &f%uuid%"
        - " &f- &cIP: &f%ip%"
        - " &f- &cEmail: &f%email%"
        - " &f- &c2FA: &f%2fa%"
        - " &f- &c2FA Secret: &f%2fa_secret%"
        - " &f- &c2FA Recovery Code: &f%2fa_recoverycode%"
        - ""
        - "        &fPlugin by: &cPavlyi"
        - ""
        - " &f&m-------------------------------"
        - ""

        reloadusage: "&f[&cAuthTools&f] &fUsage: &c/authtools reload"
        aboutusage: "&f[&cAuthTools&f] &fUsage: &c/authtools about"
        resetusage: "&f[&cAuthTools&f] &fUsage: &c/authtools reset <player> [2fa/mail]"
        backendusage: "&f[&cAuthTools&f] &fUsage: &c/authtools backend <type>"
        infousage: "&f[&cAuthTools&f] &fUsage: &c/authtools info <player>"
        setspawnusage: "&f[&cAuthTools&f] &fUsage: &c/authtools setspawn"
        setlobbyusage: "&f[&cAuthTools&f] &fUsage: &c/authtools setlobby"
        setspawn: "&f[&cAuthTools&f] &cSpawn &flocation has been setted up!"
        setlobby: "&f[&cAuthTools&f] &cLobby &flocation has been setted up!"
        importusage: "&f[&cAuthTools&f] &fUsage: &c/authtools import <backend>"

        reset:
            playerDoesntHave2FAenabled: "&f[&cAuthTools&f] &c%player% &fdoesn't have &c2FA &fenabled!"
            disabled2FA: "&f[&cAuthTools&f] &c%player%'s 2FA &fhas been disabled!"
        
        backend:
            alreadyConnected: "&f[&cAuthTools&f] &c%connectionType% &fis already connected!"
            switchedToConnection: "&f[&cAuthTools&f] &fSucessfully switched to &c%connectionType%&f!"
            couldntSwitchConnection: "&f[&cAuthTools&f] &fCouldn't switch to &c%connectionType%&f!"
            wrongConnectionType: "&f[&cAuthTools&f] &c%connectionType% &fis not a right connection type! Enter &cYAML&f, &cMYSQL &for &cSQLITE&f!"

        import:
            sucessfullyImported: "&f[&cAuthTools&f] &c%importedType% &fhas been successfully imported to &c%currentBackend%&f!"
            errorWhileImporting: "&f[&cAuthTools&f] &fError while importing backends!"
            incorrectType: "&f[&cAuthTools&f] &fIncorrect type!"

    2fa:
        setup:
            authApp:
            - "&f[&cAuthTools&f] &fYour &ckey &fis &c%secretkey%"
            - "&f[&cAuthTools&f] &fEnter the &ckey &for scan the &cQR Code &fto your Authenticator app!"
            - "&f[&cAuthTools&f] &fAfter adding the &ckey &fto Authenticator app, write a code in to the chat (ex. 123456)"
            - "&f[&cAuthTools&f] &c&lWARNING: &fYour &cRecovery Code &fis &c%recoverycode%&f. Write the code somewhere safe incase you lose access to &cAuthenticator&f."
        
            enabled: "&f[&cAuthTools&f] &c2FA &fhas been &aenabled&f!"
            disabled: "&f[&cAuthTools&f] &c2FA &fhas been &cdisabled&f!"
            
            setupCancelled: "&f[&cAuthTools&f] &c2FA &fsetup was cancelled!"            
            invalidCode: "&f[&cAuthTools&f] &fInvalid code!"
            
            qrcode:
                title: "&c2FA QR Code"
                lore:
                - "&fScan this &cQR Code &fto your &cAuthenticator &fapp."
            
        recover:
            usage: "&f[&cAuthTools&f] &fUsage: &c/2fa recover <recoverCode>"
            invalidRecoveryCode: "&f[&cAuthTools&f] &fInvalid recovery code!"
            recovered: "&f[&cAuthTools&f] &fSucessful recover! &fDisabling &c2FA&f!"
            2faDisabled: "&f[&cAuthTools&f] &fYou need to have &c2FA &fenabled!"
        
        login:
            loginMessage: "&f[&cAuthTools&f] &fEnter your &c2FA code &ffrom the &cAuthenticator app&f!\n&f[&cAuthTools&f] Lost access to &cauthenticator app&f?\n&f[&cAuthTools&f] &fUse &c/2fa recover <recovery code>"
            loggedIn: "&f[&cAuthTools&f] &fSucessfully unlocked account!"
            timedOut: "&cTime to authenticate has timed out!"
            deniedCommand: "&f[&cAuthTools&f] &fYou're not allowed to perform commands!"
            wrongCodeKick: "&cWrong code."
            playerIsOnlineKick: "&cPlayer with the same name is on the server!"

To change settings on a running server, save your changes to messages.yml and use /authtools reload.


AuthTools

AuthToolsBungee

Clone this wiki locally