geforkt von SteamWar/BungeeCore
Fix Bau delmember when player online but Bau not running
Signed-off-by: Lixfel <git-5w3l@lixfel.de>
Dieser Commit ist enthalten in:
Ursprung
8c098841ba
Commit
6232da87b5
@ -162,7 +162,8 @@ public class BauCommand extends SWCommand {
|
|||||||
Chatter member = Chatter.of(user.getUUID());
|
Chatter member = Chatter.of(user.getUUID());
|
||||||
member.system("BAU_DELMEMBER_DELETED_TARGET", owner);
|
member.system("BAU_DELMEMBER_DELETED_TARGET", owner);
|
||||||
member.withPlayer(player -> {
|
member.withPlayer(player -> {
|
||||||
if (Bauserver.get(owner.user().getUUID()).getRegisteredServer().getPlayersConnected().contains(player))
|
Bauserver bauserver = Bauserver.get(owner.user().getUUID());
|
||||||
|
if (bauserver != null && bauserver.getRegisteredServer().getPlayersConnected().contains(player))
|
||||||
player.createConnectionRequest(VelocityCore.get().getConfig().lobbyserver()).fireAndForget();
|
player.createConnectionRequest(VelocityCore.get().getConfig().lobbyserver()).fireAndForget();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren