Can't drop item plugin

Discussion in 'Requests' started by TamerZ, Aug 23, 2020.

  1. TamerZ

    TamerZ Spider Jockey

    Messages:
    28
    GitHub:
    tamerkun-cuy
    Soooooooooooo, i want to ask, if there's a plugin that you can't drop any items.

    I can make it my own, but i cant use devtools to make it from .zip to .phar.

    It says Invalid plugin name, check the name case.

    So, any tutorial on how to use DevTools or any plugin?

    Thanks! :D
     
  2. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    604
    GitHub:
    GamakCZ
    Put raw plugin folder (folder with src and plugin.yml) on to /plugins/ file. And then start the server. If you have devtools enabled, your plugin will be loaded too.
     
  3. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    407
    GitHub:
    godweedzao
    i said in the paste, you should see pluginName first, copy folder name of plugin in Plugins_data and use:
    /makeplugin namepluginhere
    and you can paste it in nameplugin here with [CTRL + V] key, press enter and you can see phar file in Plugins_Data in DevTools folder.
     
  4. THXC

    THXC Spider

    Messages:
    10
    GitHub:
    codsxblastin
    PHP:
    /** PlayerDropItemEvent $event */
    $event->setCancelled();
    This should Disable Dropping items.
    If you want to make it so you can't drop a specific item just do something like.
    PHP:
    /** PlayerDropItemEvent $event */
    $item $event->getItem();
    if(
    $item == Item::get(Item::DIAMOND_SWORD){
    $event->setCancelled();
    }
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.