How can i do joining full server with VIP perm or VIP tag. I tried lots of codes but it didnt work. Can you help me? My code. PHP: public function onPlayerKickEvent(PlayerKickEvent $event){ if ($event->getReason() == "disconnectionScreen.serverFull") { if ($event->getPlayer()->hasPermission("giris.yetki")) { $event->setCancelled(true); } } } giris.yetki : Perm for VIP joining system
In newer versions it is impossible to have onlinePlayers > maxPlayers (it's client side) so you have to leave one slot empty. And when someone no-vip joins the server and the server is full you must kick him.
Just make slots to your maximum player amount (with vips) then don't allow players to join the server if online player count is more than maxium slots - number of slots reserved for vip players I think there was an easier method but I don't remember it so I'm just leaving this