Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to Remove item if player Quit ?

Comments in 'Plugin Development' started by XWITHERHEROX, Jan 14, 2016.

  1. XWITHERHEROX
    Offline

    XWITHERHEROX Active Member

    Joined:
    Jun 4, 2015
    Posts:
    57
    Minecraft User:
    ReDaRWiTheR
    my code
    don't remove item *not work*

    PHP:
         public function onQuit(PlayerQuitEvent $eve4){
         if(
    $eve4->getPlayer()->hasPermission("run.vip")) {
                
    $eve4->getPlayer()->getInventory()->removeItem(40);
         }
    pleace help :D
  2. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    PHP:
    $eve4->getPlayer()->getInventory()->removeItem(Item::get(40));
  3. XFuryMCPE
    Offline

    XFuryMCPE Active Member Plugin Developer

    Joined:
    Jun 19, 2015
    Posts:
    137
    Plugins:
    2
    Minecraft User:
    XFuriousMC
    please*
  4. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    Nah
    XFuryMCPE likes this.

Share This Page

Advertisement