-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Display player first join datetime in /whois & /seen #4265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Should it really be displayed in /seen command tho? I think this is not the kind of data that you usually want to check quickly. |
This is out of the scope of the seen command, should be whois only. |
|
Maybe "Joined" instead of "First seen" as well. Not sure about the date format. Some locales use a different date format, and you seem to be hard coding it here. Easiest would probably just be to remove it and just have the datediff (plus this avoids wrapping to a new line which looks cleaner). Edit: Be sure to update permissions as well, and the UUID permission change should probably be its own PR. |
First seen and last seen, why not? :D
It is a problem with the date output. For example, my helper/moderator and I need to know the exact date and time when the player first join (without having to look at the server logs), but at the same time it may be enough for others (including you) to know how long ago it was.. How to solve this problem so that it is good for everyone? |
|
Updated demonstrations — it looks better now, but need to do something with full date if current implementation suits only me and my helper.. |
Btw #3710 uses similar date format. I think it should be configurable through the config and shared across the plugin code. |
Good idea. We could probably expose this in the translations and let translators deal with it. I think this is the right approach at least, if we'd like to keep the date format in here. |
|
Another idea for @molor, not sure why I hadn't thought of this yesterday. You could include the date format but just not make it the default. This is done with many other messages in Essentials. For example, include {0} as the datediff, and {1} as the date timestamp, but in the basic translation just leave it as {0}. Then, you (or anyone else) can decide to switch the format to {1} if they prefer it that way. 👏 |
pop4959
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from the other comments I left, you should still refactor the date format to at minimum remain consistent with what is done in #3710, if not also exposing it in the translations (which I would recommend doing while you're at it). It shouldn't just be copy/pasted all over the place.
Essentials/src/main/java/com/earth2me/essentials/commands/Commandseen.java
Outdated
Show resolved
Hide resolved
Essentials/src/main/java/com/earth2me/essentials/commands/Commandseen.java
Outdated
Show resolved
Hide resolved
Essentials/src/main/java/com/earth2me/essentials/commands/Commandwhois.java
Outdated
Show resolved
Hide resolved
|
I'm also iffy on this being in |
Essentials/src/main/java/com/earth2me/essentials/commands/Commandseen.java
Outdated
Show resolved
Hide resolved
Essentials/src/main/java/com/earth2me/essentials/commands/Commandseen.java
Outdated
Show resolved
Hide resolved
Essentials/src/main/java/com/earth2me/essentials/commands/Commandwhois.java
Outdated
Show resolved
Hide resolved
|
What happens with older players that have joined after this PR gets merged? They'll be shown as all "Joined today/yesterday" or it will guess (Based on the playerdata of players in world/playerdata? |
It's based on |
Essentials/src/main/java/com/earth2me/essentials/commands/Commandseen.java
Outdated
Show resolved
Hide resolved
Essentials/src/main/java/com/earth2me/essentials/commands/Commandseen.java
Outdated
Show resolved
Hide resolved
Essentials/src/main/java/com/earth2me/essentials/commands/Commandseen.java
Outdated
Show resolved
Hide resolved
Essentials/src/main/java/com/earth2me/essentials/commands/Commandseen.java
Outdated
Show resolved
Hide resolved
|
So this PR is partially useless [for me] now
|
|
Timed out |
|
Rip PR |
|
What about implementing some kind of /offlinewhois? |
So /seen? |
/whois is a more descriptive version of /seen (or vise versa, idk), but, well, @molor's problem is that it doesn't work with offline players. Surely, we can't get all the /whois info about an offline player without some funky workarounds, but some of it, including first join, can be. |
As you can see in the comments above, for some reasons you cannot put anything more into the /seen command. I don't understand why. |
Information
This PR closes #4198.
Thanks to @DebugOk for making me want to learn git
Details
Now the datetime of first player join can be viewed in
/whois(also in/seenwithessentials.seen.joinedpermission).It also adds a permissionessentials.seen.uuidto display UUID in/seen, because I think that this info need only for admins (that have this permission anyway), not the players who don't even know what it is.Proposed feature:
Add ability to display player first join datetime in /whois and /seen.
Environments tested:
OS: Windows 10 x64; Windows Server 2012 R2 x64
Java version: 16 x64
Demonstration:
(a little outdated)


seen:whois: