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

Very dump question!

Comments in 'Plugin Development' started by JackboyPlay, Mar 29, 2016.

Thread Status:
Not open for further replies.
  1. JackboyPlay
    Offline

    JackboyPlay Active Member

    Joined:
    Apr 25, 2015
    Posts:
    507
    Minecraft User:
    JackboyPlay
    PHP:
    public $kitpvp = array();
    public function 
    BLABLA(BlaBla $event){
    if(!isset(
    $this->kitpvp[$event->getPlayer()->getName()])){
    $this->kitpvp[$event->getPlayer()->getName()];
    }
    }
    Why wasn'z the player inputted into the array?
  2. Intyre
    Offline

    Intyre Staff Member PocketMine Team

    Joined:
    Aug 24, 2013
    Posts:
    118
    Minecraft User:
    Intyre
Thread Status:
Not open for further replies.

Share This Page

Advertisement