I am having problems with player that put the same username, which causes one of them to be kicked from the server, someone knows how to work around this, preventing a player from being able to put the name that a player has already chosen?
The game requires you to login to an xbox account to play on multiplayer servers that aren't on your network, unless you use a proxy, and even then PocketMine also checks if a player is logged into an xbox account by default. Have you turned off that feature?
I disabled the xbox auth so that people who do not have the official game can play with me, but if someone tries to log in with the same name the original player is kicked out of the game, I could at least let others try to log in without anyone using SimpleAuth plugin
People who didn't buy the game can have an xbox account too. But anyway, you can write a plugin to prevent kicking out the player that is already playing when someone tries to join with the same name. The code will be somewhat like this: PHP: public function onPlayerPreLogin(PlayerPreLoginEvent $event) { $player = $event->getPlayer(); foreach ($this->plugin->getServer()->getOnlinePlayers() as $onlinePlayer) { if ($onlinePlayer !== $player && $player->getLowerCaseName() === $onlinePlayer->getLowerCaseName()) { $event->setKickMessage("Already logged in"); $event->setCancelled(); return; } }}
That's why Xbox Live auth exists. I don't think anybody is updating the old auth plugins anymore. Chances are high that an auth plugin would use a higher priority than default, so you may want to set yours to HIGHEST or MONITOR, even. I'd check for you if I knew which version of SimpleAuth OP is using. Of course, the simplest method would be to just reeneable Xbox Live auth, assuming what you said is true.
the simplest method is to cancel the kick event which produced by PMMP when a it's logged from another location people disable xbl for a reason as clearly stated and do not wish to use it for the same reason so please stop telling them to do it OR you can on login packet if name taken, change their username to something else like Thunder33345_recovery_1 which will be prompted password for thunder33345, with a message saying this will kick the current user on the same name if auth successful if they success, the current player will be kicked the new player will retransfer to the same server, changing the username back to thunder33345
As I know the unofficial/cracked versions of MCPE break the Xbox Auth services. So, even if you have a free Xbox Live account, you are not able to join while in-game. I implemented this feature a long time ago in ServerAuth. But since auth plugins are useless nowadays I abandoned the development of that plugin. However I published the latest source code I was working to. Maybe you can finish it and run ServerAuth on your server to solve your issue.
this is a bad idea as what if i shared both devices from different IP \ involving an administrator over such an mundane task is unnecessary