EssentialsX

EssentialsX

2M Downloads

afk message not working

Castiella opened this issue ยท 41 comments

commented

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.

commented

Negate essentials.afk.others or add more than just MESSAGE

commented

Hi, thanks for the response. However, I just tried that and neither worked.

commented

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

commented

Could you run /ess debug then paste the console output when a player runs /afk test test?

commented

Could you post the corresponding output in game? There's nothing in the debug log that indicates that this isn't working correctly.

commented

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

commented

Relevant wiki page

However, this can be changed in the locale file (messages_en.proeprties, or whichever locale file you are using) by modifying userIsAwayWithMessage and using the {1} argument, the message.

commented

userIsAwayWithMessage=\u00a77* {1} \u00a77is now AFK.

Edited it with that but still not working

commented

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

commented

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"

commented

Yeah i did that and edited both the en and normal one and it still isnt working

commented

userIsAwayWithMessage=\u00a77* {0} \u00a77is now AFK.

commented

It was at 0 previously, but i thought md said to put it as 1

commented

Try
userIsAwayWithMessage=\u00a77* {0} \u00a77is now AFK. Reason: {1}

commented

DId not work either.

commented

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}

commented

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

commented

"both the EN and normal msg properties"?

commented

I copy pasted the config into every language file just in case it was using a different one.

commented

You only need 1 language file...

Please say witch one you use

and send us you'r config,

commented

Okay, I deleted every language file except EN and this is it
https://pastebin.com/RnDAb3us

commented

Does other changed message's works?

commented

Does other message works that you have changed.

If you change an other message, Does that changed message appear?

commented

Sorry, I don't understand what you're trying to say. What other changed messages?

commented

I haven't changed any other messages, what would you like me to change?

commented

Yes. Change an other one and check if the changed one appear.

commented

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"

commented

kay, Give us you'r config.

commented

(I edited "you have been healed" back, by the way)

commented

Give us you config.yml

commented

Well, you didnt specify what config, theres no need to be rude ^.^
https://pastebin.com/EDsBA15P

commented

anyway
Try to change "#locale: en "to "locale: en" and rename you'r properties file to "messages_en.properties"

commented

Okay, did that and it still isnt working.
Here is the updated config: https://pastebin.com/PZs9fNe6

Here is a screengrab of the file showing message properties
image

commented

Please show us the current messages_en.properties

commented

Then its maybe because of "Paper"

It works fine for me, (spigot)

commented

@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:

  1. Download the appropriate messages_ZZ.properties file from here (where ZZ is the language you intend to use), and place it in plugin/Essentials/.
  2. Remove the # before the locale option in config.yml, and if necessary change en to the language that matches your downloaded file.
  3. With a text editor, find the line that starts with userIsAwayWithMessage and add something like - "{1}" to the end of that line.
  4. Restart your server and try /afk test test again.
commented

That worked, thank you so much!

commented

Good to hear - let us know if you need any more assistance.