XP Drop Plugin that overrides Game Rule

Discussion in 'Spigot Plugin Help' started by Mortalsinn, May 4, 2015.

  1. Is it possible or is there such a plugin that does this? makes players drop their XP even if the keepInventory gamerule is set to true?
     
  2. I believe gamerule's are hard-written into minecraft.
    well, they actually may be written into Spigot from Vanilla.

    anyways, maybe you could use packets to catch whatever is fired when keepInventory is used and cancel out the keep XP.
    simpler solution: disable server-side keepInventory and have a simple plugin that acts as it's own keepInventory gamerule but just doesn't keep XP.
     
  3. Have any suggestions? I've tried DeathControl but it had conflicts with Infernal Mobs and players would drop their inventory anyways due to the way the boss mobs killed players.
     
  4. I think I might be able to write something up for you, give me an hour.
     
  5. heh, make that 15 minutes.

    https://www.dropbox.com/s/z03yyf8o74afyuz/keepInventory.jar?dl=1
    https://gist.github.com/Cewlt/9849bd4223236cef08e5

    tested and appears to be working just fine.

    edit: @Mortalsinn, uhh any problems?
     
    #6 Coltll, May 4, 2015
    Last edited: May 5, 2015