
Now, what I'm here to ask is, how can we trim a player.Name to something more appealing than [email protected] over to SirTacoMan314_.
I tried something to edit the name, but player.Name is readonly. Does anyone know a proper fix to this?
Making a displayedname for users logging in is pretty simple, but what about when players want to whisper or /info the mojang account user. They would have to type the whole thing out. Plus, since the mojang account user's still have their email as their player name, their email is still rather public, posing a privacy issue. Finally, if a mojang account user sets their displayedname to something else, when they reset that name, it would just go back to showing the server their email. Changing the displayedname is only a very temporary fix. If we could somehow make the player name read-write instead of read, then we could automatically catch emails, and rewrite their names to be more user friendly. Also, there really is no reason for the player name to be readonly. It shouldn't pose any data risk, should it?Hellenion wrote:It's not possible to change the playerDB names automatically, you could do it by hand but then fragmer will shout at you for not being responsible for loss of data and stuff.
I could probably paste some code to work around your read-only problem but I don't think I have time for that until thursday.
Hey why not give all players with email a displayedname automatically? I think that may solve your issues
Hi,Hellenion wrote:Well, everything that can change poses a risk. Just as an example, I'm sure this is not the only issue, but Playernames must be unique, if it somehow happened that a duplicate playername was written, the player in question would most likely be unidentifiable by the server. As it is now this cannot happen.
That is a great example of what I meant, but you should be able to /info jacob by typing jacobs exact playername. It might be jacob is just a "displayedname", which is like a nickname. If you type the exact and real name of jacob you should get their info.matelo2 wrote:we have a character called jacob (he is staff) if you do /info jacob it brings up a comment stating there are a number of names conforming to that and gives a list i.e. jacob, jacob154, jacobsname etc (i cant remember the exact names here). I can /info any of the others but can't /info jacob. is this what you are implying above? Is there any way I can /info him?Hellenion wrote:if it somehow happened that a duplicate playername was written, the player in question would most likely be unidentifiable by the server.
How do I find jacobs full name, everything I have tried just calls him jacob?Hellenion wrote:That is a great example of what I meant, but you should be able to /info jacob by typing jacobs exact playername. It might be jacob is just a "displayedname", which is like a nickname. If you type the exact and real name of jacob you should get their info.matelo2 wrote:we have a character called jacob (he is staff) if you do /info jacob it brings up a comment stating there are a number of names conforming to that and gives a list i.e. jacob, jacob154, jacobsname etc (i cant remember the exact names here). I can /info any of the others but can't /info jacob. is this what you are implying above? Is there any way I can /info him?Hellenion wrote:if it somehow happened that a duplicate playername was written, the player in question would most likely be unidentifiable by the server.
Code: Select all
Logger.Log( LogType.UserActivity,
"Player {0} connected from {1} (session #{2})",
Name, IP, Info.TimesVisited );
Which is possibly why it is logging me on a matelo2 when i try to go on as my e-mail user name from the same ip address do you think. If so is there any way of correcting this?LeChosenOne wrote:Yes, mojang accounts will give you an email username, that's the whole reason I was trying to add mojang account support. The resume button on wom will bring you back to the last server you successfully joined. Also, I'm pretty sure fCraft will look at your ip and try to allow you to connect if ips match.
There is no such feature in vanilla fCraft. You must be thinking of a mod.LeChosenOne wrote:...Yup I lost you. Just try updating to the latest fCraft, and then use /list displayednames.
Code: Select all
playerinfos.Where( info => info.mojang != null ).Count();
Even simpler:Hellenion wrote:Code: Select all
playerinfos.Where( info => info.mojang != null ).Count();
Code: Select all
playerinfos.Count( info => info.mojang != null );
Code: Select all
playerinfos.Count( info => info.mojang < 0 );