afk message not working
Castiella opened this issue ยท 41 comments
EssentialsX version (run /ess version
): 2.0.1- B603
Server software (run /version
): 1.12.2 (Paper) version 1321
Server log (upload logs/latest.log
to Gist): Not sure if necessary but will post if required
EssentialsX config (upload plugins/Essentials/config.yml
to Gist): Not nec
Details
When I try to use the custom afk message with /afk MESSAGE it says ERROR: Player not found.
When players do it it just sets them afk with the normal message.
09.03 13:26:23 [Server] INFO Castielle issued server command: /afk test test
09.03 13:26:23 [Server] INFO [Essentials] checking if Castielle has essentials.mail - true
09.03 13:26:23 [Server] INFO [Essentials] checking if Castielle has essentials.afk - true
09.03 13:26:23 [Server] INFO [Essentials] checking if Castielle can afford charge.
09.03 13:26:23 [Server] INFO [Essentials] calculated command (afk) cost for Castielle as 0
09.03 13:26:23 [Server] INFO [Essentials] checking if Castielle has essentials.afk.others - false
09.03 13:26:23 [Server] INFO [Essentials] checking if Castielle has essentials.afk.message - true
09.03 13:26:23 [Server] INFO [Essentials] checking if Castielle has essentials.sleepingignored - true
09.03 13:26:23 [Server] INFO [Essentials] attempting to charge user Castielle
09.03 13:26:23 [Server] INFO [Essentials] calculated command (afk) cost for Castielle as 0
09.03 13:26:23 [Server] INFO [Essentials] charge user Castielle completed
Could you run /ess debug
then paste the console output when a player runs /afk test test
?
Could you post the corresponding output in game? There's nothing in the debug log that indicates that this isn't working correctly.
its just doing the standard Afk message "cas is now AFK
My server is play.wintercrestc.com if you want to see it for yourself
However, this can be changed in the locale file (
messages_en.proeprties
, or whichever locale file you are using) by modifyinguserIsAwayWithMessage
and using the{1}
argument, the message.
userIsAwayWithMessage=\u00a77* {1} \u00a77is now AFK.
Edited it with that but still not working
Properties filles. Where all the message's are. (most part of it anyways)
You can get it from here > https://github.com/EssentialsX/Essentials/tree/2.x/Essentials/src
Please show us you'r file.
And try to do /afk This is an test.
If you want to set an other player afk with message its the same but then an name before "This"
Does the player have the permssion > essentials.afk.message
And did you try to use: /afk This is an test.
and do you have: userIsAwayWithMessage=\u00a77* {0} \u00a77is now AFK. Reason: {1}
Yes, I am also OP.
Yes i am literally writing, /afk this is a test
and yes i have that in both the EN and normal msg properties
I copy pasted the config into every language file just in case it was using a different one.
You only need 1 language file...
Please say witch one you use
and send us you'r config,
Okay, I deleted every language file except EN and this is it
https://pastebin.com/RnDAb3us
Does other message works that you have changed.
If you change an other message, Does that changed message appear?
Sorry, I don't understand what you're trying to say. What other changed messages?
Okay, i changed
heal=\u00a76You have been healed.
to
heal=\u00a76You This is a test heal
and it didnt change, it just said " you have been healed"
Well, you didnt specify what config, theres no need to be rude ^.^
https://pastebin.com/EDsBA15P
anyway
Try to change "#locale: en "to "locale: en" and rename you'r properties file to "messages_en.properties"
Okay, did that and it still isnt working.
Here is the updated config: https://pastebin.com/PZs9fNe6
@Dutchuser Please keep it civil. The issue is not related to Paper.
@Castiella I can't tell what stage you're at in terms of getting this sorted, but here's a rough concise guide to using locale files:
- Download the appropriate
messages_ZZ.properties
file from here (where ZZ is the language you intend to use), and place it inplugin/Essentials/
. - Remove the
#
before thelocale
option inconfig.yml
, and if necessary changeen
to the language that matches your downloaded file. - With a text editor, find the line that starts with
userIsAwayWithMessage
and add something like- "{1}"
to the end of that line. - Restart your server and try
/afk test test
again.