Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Jak zmienić treść komunikatu w FastLogin?


rafcio2012

Rekomendowane odpowiedzi

Opublikowano

Witam, parę dni temu dodałem na własny serwer plugin "Fastlogin", który chroni konta graczy premium na serwerze non-premium. Problem dotyczy tego, ze gdy gracz non-premium wchodzi na serwer widzi komunikat "Failed to login: Access Token can not be null or empty.". Czy jest możliwość jakaś aby zmienić treść tego komunikatu?

Opublikowano

Chodzi Ci o usunięcie tego "Failed to login" czy zmiana na własny tekst błędu?

Sprawdź, czy w folderze pluginu nie ma pliku "messages". Jeżeli jest, otwórz go i wyszukaj swoją frazę.

Opublikowano

Chodzi o to aby zmienić ten komunikat na własny. Jest plik messages lecz  w nim nie ma nic odnośnie tego.

 

messages z tego pluginu:

 

 

# FastLogin localization
# Project site: https://www.spigotmc.org/resources/fastlogin.14153
# Source code: https://github.com/games647/FastLogin
#
# You can access the newest locale here:
# https://github.com/games647/FastLogin/blob/master/core/src/main/resources/messages.yml
#
# You want to have language template? Visit the Github Wiki here:
# https://github.com/games647/FastLogin/wiki/English

# In order to split a message into seperate lines you could just make a new line, but keep the '
# Example:
# bla: '&aFirst line
# Second line
# Third line'

# If you want to disable a message, you can just set it to a empty value.
# In this case no message will be sent
# Example:
# bla: ''

# ========= Shared (BungeeCord and Bukkit)   ============

# Switch mode is activated and a new (non-whitelist) cracked player tries to join
switch-kick-message: '&4Only paid minecraft whitelisted accounts are allowed to join this server'

# Player activated premium logins in order to skip offline authentication
add-premium: '&cZostales dodany do listy graczy premium'

# Player activated premium logins in order to skip offline authentication
add-premium-other: '&cGracz zostal dodany do listy graczy premium'

# Player is already set be a paid account
already-exists: '&cJestes na liscie premium!'

# Player is already set be a paid account
already-exists-other: '&cGracz aktualnie jest na liscie premium'

# Player was changed to be cracked
remove-premium: '&cUsunieto z listy graczy premium'

# Player is already set to be cracked
not-premium: '&cNie ma cie na liscie premium'

# Player is already set to be cracked
not-premium-other: '&cNie ma gracza na liscie premium'

# Admin wanted to change the premium of a user that isn't known to the plugin
player-unknown: '&cNie ma takiego gracza w bazie danych'

# ========= Bukkit/Spigot/PaperSpigot/TacoSpigot only ================================

# The user skipped the authentication, because it was a premium player
auto-login: '&8[&a***.pl&8]&7Zalogowano automatycznie z konta premium'

# The user was auto registered on the first join. The user account will be registered to protect it from cracked players
# The password can be used if the mojang servers are down and you still want your premium users to login (PLANNED)
auto-register: '&2Zarejestrowano z haslem: %password
Chcesz zmienic?'

# Player is not able to toggle the premium state of other players
no-permission: '&4Not enough permissions'

# Although the console can toggle the premium state, it's not possible for the console itself.
# Because the console is not a user. (obviously, isn't it?)
no-console: '&4You are not a player. You cannot toggle the premium state for YOURSELF as a console'

# The user wants to toggle premium state, but BungeeCord support is enabled. This means the server have to communicate
# with the BungeeCord first which will establish a connection with the database server.
wait-on-proxy: '&6Wysylanie zapytania...'

# When ProtocolLib is enabled and the plugin is unable to continue handling a login request after a requested premium
# authentication. In this state the client expects a success packet with a encrypted connection or disconnect packet.
# So we kick the player, if we cannot encrypt the connection. In other situation (example: premium name check),
# the player will be just authenticated as cracked
error-kick: '&4Error occured'

# The server sents a verify token within the premium authentication reqest. If this doesn't match on response,
# it could be another client sending malicious packets
invalid-verify-token: '&4Invalid token'

# The client sent no request join server request to the mojang servers which would proof that it's owner of that
# acciunt. Only modified clients would do this.
invalid-session: '&cZbugowana sesja'

# The client sent a malicous packet without a login request packet
invalid-requst: '&4Invalid request'

# Message if the bukkit isn't fully started to inject the packets
not-started: '&cServer is not fully started yet. Please retry'

# Warning message if a user invoked /premium command
premium-warning: '&c&lWARNING: &6This command should &lonly&6 be invoked if you are the owner of this paid minecraft account
Type &a/premium&6 again to confirm'

# ========= Bungee/Waterfall only ================================



 

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...