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

Retrieve a Kit

Comments in 'Plugin Development' started by Are52Tap, Mar 3, 2014.

  1. Are52Tap
    Offline

    Are52Tap New Member

    Joined:
    Mar 3, 2014
    Posts:
    3
    Minecraft User:
    Are52Tap
    Code:
    $kits = $this->config["kits"][$params[0]];
                    $output .= $kits + " ./n";
                    foreach($kits as $kit){
                        $kit = explode(" ", $kit);
                        $item = BlockAPI::fromString(array_shift($kit));
                        $count = $kit[0];
                        $data->addItem($item->getID(), $item->getMetadata(), $count);
                        break;
                    }
                    break;
    I used the Essentials (PE Edition) way of kits

    its suppose to be used like /kit <name>

    it crashes each time. can someone help me please?

    Thanks!! :)

    btw I am new to this.
  2. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Essentials or PocketEssentials?
  3. Are52Tap
    Offline

    Are52Tap New Member

    Joined:
    Mar 3, 2014
    Posts:
    3
    Minecraft User:
    Are52Tap
  4. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    PocketEssentials doesn't have any kits commands .-. xD
  5. Are52Tap
    Offline

    Are52Tap New Member

    Joined:
    Mar 3, 2014
    Posts:
    3
    Minecraft User:
    Are52Tap
    Ik but I am editing it for my own personal use, I am adding kits to it, because of it already has a config thing in it with config that has a starter kit. Can you edit my code that I put up there i got the main part of it from the starter kit function so is that how you do it?
  6. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    I'm sorry but I don't have time :p

Share This Page

Advertisement