No drop...

Discussion in 'Spigot Plugin Help' started by Heroiik62, May 1, 2015.

  1. Hello,
    i've a problem with my server,
    I'm on Spigot 1.8.3 and i don't find a plugin who will won't give the permission to users to drop on only the spawn. I've find PancakeHub or Hubbasics but it's for all maps and i don't have Bungee..
    Thank you and sorry for my bad english..
  2. Do you mean having a permission to be able to drop items?
    It's a extremely quick and easy code, less then 5 lines depending if you want a permission and or a message sent to the player. Sorry if I interpreted this wrong
    • Like Like x 1
  3. Hmm no I just want a code or a plugin, if it's possible.. How i can do that ?
  4. its really easy
    Code (Text):
    public class Drop extends JavaPlugin implements Listener {
    public void onEnable() {
    getServer().getPluginManager().registerEvents(this, this)
    public void noDrop(PlayerDropEvent e) {
    You may need to add another bracket at the end and import everything, but just add that under your package: import everything, save everything and you should be good, I wrote this on my phone so I may have missed something sorry
  5. Can you tell me where this code go ? Because I never do that.. ^^"
  6. Sorry but before coding I would advise that you gain some simple Java knowledge
    • Funny Funny x 1
  7. NO, JUST NO. Go look at the java tutorials and then look at the javadocs
  8. That is a Java tutorial... Lol
  9. @Bear53 Not every player should code plugins ^^ Maybe it's better if you (or any other spigot-user) compiles it for him ^^
  10. Yes that may be a better idea
  11. I don't know what you are trying to say me.. I must learn the java ?
  12. Look I'll publish a small plugin that just clears drops ok? It's not hard at all just not home
    • Like Like x 1