1.16.5 Something is disabling pistons in my plugin

Discussion in 'Spigot Plugin Development' started by KaboomRoads, Jul 6, 2021.

  1. something is disabling pistons in my plugin, there are no piston listeners and in fact there is not event the word piston in ANY of my code my spigot yml is default and plugin yml only has a list of commands api version etc
    at first i though this might be because of protocollib because of my testing but that turned out to be false so i am not sure what could be causing this problem, anyone have an idea of what could be disabling pistons in my plugin?
     
  2. We're gonna need to see your code. As it is now, you're asking us to guess.
     
  3. yes but that is thousands of lines of code and im unsure what the cause is
    im just asking if anyone knows possible ways pistons could be disabled
     
  4. 1. Are you sure your plugin is responsible for disabling pistons? If yes, check your listeners.
    2. What other plugins you have on the server? Maybe there's a conflict you don't know about.
     
  5. i have protocollib too but i tested thta and it is not the cause

    here are all the event types in the plugin

    BlockBreakEvent;
    BlockDamageEvent;
    BlockPhysicsEvent;
    BlockPlaceEvent;
    EntityChangeBlockEvent;
    EntityDamageByEntityEvent;
    EntityDamageEvent;
    EntityDeathEvent;
    EntityShootBowEvent;
    EntitySpawnEvent;
    ProjectileHitEvent;
    InventoryClickEvent;
    PlayerFishEvent;
    PlayerInteractAtEntityEvent;
    PlayerInteractEvent;
    PlayerJoinEvent;
    PlayerMoveEvent;

    Edit: very sure it wont be any of the entity listeners

    so prob
    BlockBreakEvent;
    BlockDamageEvent;
    BlockPhysicsEvent;
    BlockPlaceEvent;
    EntityChangeBlockEvent;
    but i looked at my code and it doesent seem like it would be this

    Edit 2: maybe its not listeners at all
     
    #5 KaboomRoads, Jul 6, 2021
    Last edited: Jul 6, 2021
  6. Since you're not going to provide code, you're probably gonna have to just disable all listeners, and test that. If the issue persists, it's not the listeners. If it doesn't, enable the listeners one by one to find the listener causing problems.
     
  7. just replaced all EventHandler text with a // before it so then the events are not working
    now pistons work so its because of an event
     
  8. Then you can start enabling them one by one to find the problem.
     
  9. seems to be BlockPhysicsEvent
     
    • Like Like x 1
  10. i tried blockphysicsevent and it was not the cause

    Edit: ohhh i had a stray block physics event i didnt notice thanks! it works
     
    • Like Like x 1