1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Joining to Full Server with VIP

Discussion in 'Development' started by Emirhan Akpınar, May 18, 2019.

  1. Emirhan Akpınar

    Emirhan Akpınar Slime

    Messages:
    90
    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
     
  2. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    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.
     
    Eren5960 and MalakasPlayzMCPE like this.
  3. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    Increase slot when vip join and kick non vip?
     
  4. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    no, when vip leave :facepalm:
     
  5. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    Increase slot when vip leave? Wtf he want vip to join when server full
     
  6. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    Then why are you asking for what he want to do when you know it?
     
  7. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    Lmao I didn't ask
     
  8. Diduhless

    Diduhless Baby Zombie

    Messages:
    199
    GitHub:
    Diduhless
    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
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.