Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6837

Entity.remove() does not release POI's


    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • windows 10 OS, OpenJDK 64-Bit Server VM Zulu17.30+15-CA, localhost

    • 3284-Spigot-3892929-0ebef35
    • Code attached in description
    • Yes

      running entity.remove() on a villager who has claimed a bed, or jobsite, does not reset the poi - free_tickets claimed by the villager.

      Potential other POI effects may be Bells, Bee Hives, etc. where free_tickets can be reduced to 0.



      Create and load a simple plugin

      package my.test.runs;
      import org.bukkit.event.EventHandler;
      import org.bukkit.event.Listener;
      import org.bukkit.event.player.PlayerInteractEntityEvent;
      import org.bukkit.plugin.java.JavaPlugin;
      public final class Main extends JavaPlugin implements Listener {
          public void onEnable() {
          public void onPlayerInteractEntity(PlayerInteractEntityEvent event){

      Create a "Point of Interest" such as a bed(Image shows 4 beds with free_ticket of 1)

      Spawn/or lead a villager to claim said bed(Image shows 4 villagers have claimed 4 beds, free_ticket = 0)

      run Entity.remove() on any said villager.( Image shows removed villagers but does not set the free_ticket for poi back to 1)

            Unassigned Unassigned
            JugH3ad` JugH3ad
            0 Vote for this issue
            2 Start watching this issue