Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

BlockBreak help

Comments in 'Plugin Development' started by Angelo Vidrio, Apr 1, 2015.

  1. Angelo Vidrio
    Offline

    Angelo Vidrio Active Member Plugin Developer

    Joined:
    Jan 16, 2014
    Posts:
    123
    Plugins:
    5
    Minecraft User:
    LilCrispy45
    Hello, I need to know if there is any possible way I can stop a player from breaking a block before it actually happens. My reason for this is because some players can "lag" through blocks they break even if BlockBreak event is cancelled because the client sends a packet.
  2. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Maybe if you write a plugin to predict the future ;)

    I could definitely use a plugin like that.

    Anyway, I think the "PlayerInteract" event is send before the break. Maybe you could do something with that.
    Angelo Vidrio likes this.
  3. xFlare
    Offline

    xFlare Active Member Plugin Developer

    Joined:
    Sep 28, 2014
    Posts:
    199
    Plugins:
    1
    Minecraft User:
    xFlare
    put them in gamemode 2
    Angelo Vidrio likes this.
  4. xFlare
    Offline

    xFlare Active Member Plugin Developer

    Joined:
    Sep 28, 2014
    Posts:
    199
    Plugins:
    1
    Minecraft User:
    xFlare
    There will always be lag in sending packets, clients show the block "broken" but the server reverts this
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    In plugin perspective, yes, PlayerInteractEvent is earlier. In user perspective, no, they are fired at basically the same time.
    xFlare likes this.
  6. Angelo Vidrio
    Offline

    Angelo Vidrio Active Member Plugin Developer

    Joined:
    Jan 16, 2014
    Posts:
    123
    Plugins:
    5
    Minecraft User:
    LilCrispy45
    Would this cause a game crash?
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Yes, but no if they were in gamemode 2 in the first place.
  8. Angelo Vidrio
    Offline

    Angelo Vidrio Active Member Plugin Developer

    Joined:
    Jan 16, 2014
    Posts:
    123
    Plugins:
    5
    Minecraft User:
    LilCrispy45
    Hmmm, not what I need. Since this is a minigame im trying to make. The Instant network has this on their blockhunt server, bh.inpvp.net
  9. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    When players change from KitPvP or parkour to spleef, the same thing happens on LegionPE. @shoghicp seems to be quite concerned about such fix in 0.11, so we mightn't need to worry about it.
  10. Angelo Vidrio
    Offline

    Angelo Vidrio Active Member Plugin Developer

    Joined:
    Jan 16, 2014
    Posts:
    123
    Plugins:
    5
    Minecraft User:
    LilCrispy45
    Ok, thanks guys, Ill talk to my client about it.
    PEMapModder likes this.

Share This Page

Advertisement