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 Legomite, Mar 23, 2014.

  1. Legomite
    Offline

    Legomite Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    470
    Plugins:
    2
    Minecraft User:
    Legomite
    Does anyone know a plugin for deleting dropped items at a set interval .
  2. PluginMastered
    Offline

    PluginMastered Active Member

    Joined:
    Mar 1, 2014
    Posts:
    161
    Minecraft User:
    Flexa33
    I do but the person who invented it got banned a.k.a VanishedKevin I have the plugin BTW !
  3. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,201
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    use pmess. google it or find it on github
  4. PluginMastered
    Offline

    PluginMastered Active Member

    Joined:
    Mar 1, 2014
    Posts:
    161
    Minecraft User:
    Flexa33
    I can post it on pocket mine plugins but when I upload the file it comes blank at download
  5. Legomite
    Offline

    Legomite Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    470
    Plugins:
    2
    Minecraft User:
    Legomite
    Is it the one that needs ai change?
  6. PluginMastered
    Offline

    PluginMastered Active Member

    Joined:
    Mar 1, 2014
    Posts:
    161
    Minecraft User:
    Flexa33
    I think So ?
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Try this:
    PHP:
    function init(){
      
    ServerAPI::request()->schedule(SCHEDULED_TIME, array($this"clearAll"));
    }
    function 
    clearAll(){
      
    $ents=ServerAPI::request()->api->entity->getAll(LEVEL_OBJECT_OR_NULL);
      foreach(
    $ents as $ent){
        if(
    $ent->class===ENTITY_ITEM){
          
    $ent->setPosition(new Position(-256128, -256$ent->level));
          
    $ent->close();
      }
    }

Share This Page

Advertisement