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

Help

Comments in 'Plugin Development' started by KHAV, Nov 16, 2016.

  1. KHAV
    Offline

    KHAV New Member

    Joined:
    Aug 7, 2016
    Posts:
    35
    Minecraft User:
    KHAV
    Hello

    Is there any proplem?
    PHP:

        
    public function Packet(\pocketmine\event\server\DataPacketReceiveEvent $ev){
            if(
    $this->getVar()->array[$ev->getPlayer()->getName()] >= time() - $this->getVar()->config->get("Time")){
                
    $this->getVar()->array[$ev->getPlayer()->getName()] = time();
                \
    onebone\economyapi\EconomyAPI::getInstance()->addMoney($ev->getPlayer()->getName(),$this->getVar()->config->get("Money"));
            }
        } 
    }
    ?>
  2. SamGamgee55
    Offline

    SamGamgee55 Active Member

    Joined:
    Sep 29, 2016
    Posts:
    52
    Minecraft User:
    SamGamgee55
    Please post this on the new forums. Thanks!!!
  3. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
    Sorry Pleas make issus in my plugin github
    https://github.com/DevGames/TimeMoney
    archie426 likes this.

Share This Page

Advertisement