EssentialsX

EssentialsX

2M Downloads

AFK suggestion

Borc55 opened this issue ยท 12 comments

commented

,,Greetings, you probably got this idea multiple times, but is it possible to add /afk (reason). In case you don't want to remove the (player) thing, you can maybe add another command like /afkr (reason). In my opinion, /afk (player) is pretty useless since you can do /sudo (player) afk. But that's just my point of view. Thanks for reading."

commented

This makes no sense at all.

commented

How so?

commented

Oh I see, it got corrupted. I just copy pasted it from different log. Fixed it.

commented

You could take away the permission to set other players afk status. This way /afk reason will be the default.

commented

Wait, afk reason is already implemented? I never saw it anywhere in config/commands of EssentialsX. I'm sorry in that case.

commented

Yes here 5842b5f

commented

Thanks for being kind. Tho when I type /afk (message), it doesn't show it, I checked en_messages and there's not even a tag for reason, it's written the same way as normal AFK.

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

I tried adding {1} to the userIsAwayWithMessage, it didn't work tho. Is that an error or my mistake?
Reason only shows when typing a /msg to afk player.

//EDIT
They can't even be translated/changed, maybe that's why.

commented

Adding {1} should work though. The default language file is not messages_en.properties, but just messages.properties.

commented

I have messages_en set in the config, every other change I did in the messages has updated, only those two didn't.
(userAFKWithReason and userIsAwayWithReason)
Tried it on localhost with fresh config, same result, every message can be changed, only those two are kept the same.

commented

He actually renamed the message keys here, use userAFKWithMessage anduserIsAwayWithMessage instead.

commented

I see, thanks a million, pretty sure that's gonna work.

commented

Should this be closed now?