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

The removal of the subject from the creative

Comments in 'Plugin Development' started by pub4game, Sep 1, 2015.

  1. pub4game
    Offline

    pub4game New Member

    Joined:
    Feb 28, 2015
    Posts:
    30
    Thanks!! :)
  2. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    Actually the code is Wrong..
    this is the right code:
    PHP:
    self::addCreativeItem(Item::get(Item::57);
    Thanks
  3. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    no it is not right code :D
  4. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    your Code doesn't work for me.

    look at the PocketMine's source code you fill find it
    PHP:
    self::addCreativeItem(Item::get(Item::WOODEN_SLAB5));
    and not
    PHP:
    item::addCreativeItem(Item::get(Item::WOODEN_SLAB5));
  5. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    ? xD if my code doesnt work your code can´t work too xDDDDDDDDD
    My code is:
    PHP:
    Item::addCreativeItem(Item::get($id$damage$count));
    [/PHP]
    Last edited: Sep 2, 2015
  6. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    Yaa your code is right. and the first code was wrong.
  7. pub4game
    Offline

    pub4game New Member

    Joined:
    Feb 28, 2015
    Posts:
    30
    Can I use hasPermission in onEnable?
  8. BalAnce
    Offline

    BalAnce Active Member

    Joined:
    Mar 10, 2015
    Posts:
    125
    Minecraft User:
    BalAnce
    No, and why would you want to do that.
    MCPEPIG likes this.
  9. pub4game
    Offline

    pub4game New Member

    Joined:
    Feb 28, 2015
    Posts:
    30
    Needed....
  10. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    Not needed...
    MCPEPIG likes this.
  11. pub4game
    Offline

    pub4game New Member

    Joined:
    Feb 28, 2015
    Posts:
    30
    I wanted to make a creative menu for your donation and for admins.
  12. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    And which player do you want to learn it upon? The player has not joined at all.
    Please learn the basics concepts of programming. It tells you that code is executed procedurally, i.e. what you wrote is done exactly that time it is supposed to be done. What you write in onEnable is done in onEnable and nowhere else.
  13. pub4game
    Offline

    pub4game New Member

    Joined:
    Feb 28, 2015
    Posts:
    30
    Heh,I know)) I just started learning :) do not scold me
  14. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    This is teaching ;)
  15. pub4game
    Offline

    pub4game New Member

    Joined:
    Feb 28, 2015
    Posts:
    30
    :) Thanks that helped. I have a question for you off topic) Will there be an updated plugin WorldEditArt ?
    Last edited: Sep 3, 2015
  16. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    But the wrong thing is not to type the ID. type the name like DIAMOND_BLOCK if No you will get a Syntax error.
  17. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    PHP:
     const DIAMOND_BLOCK 57
    ;)

Share This Page

Advertisement