Filled denyEndCrystal

Discussion in 'Plugin Requests' started by madtomic, Apr 20, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    madtomic

    Plugin category: Mechanical

    Minecraft version: 1.12.2

    Suggested name:
    denyEndCrystal

    What I want: I would like a simple cancel plugin that would deny interaction with End Crystal. This is for all default players.

    Commands: No commands

    Permissions
    :
    No permissions

    Thank you for reading.
     
  2. Offline

    Cervisial

    Last edited: Apr 20, 2020
  3. Offline

    timtower Administrator Administrator Moderator

    @Cervisial Have you tried that when clicking air?
     
  4. Offline

    Cervisial

    @timtower I haven't, but why would that matter? Not gonna lie I didn't test the plugin at all, but apparently there's an issue with it cause the requester and I have been having a conversation back and forth and there's some error in console. I wouldn't think it would matter what's going on in the air, and I could just cancel the PlayerInteractEvent if the clicked block type is Material.END_CRYSTAL
     
  5. Offline

    timtower Administrator Administrator Moderator

    @madtomic @Cervisial To both, keep the conversation in the thread, don't go to PM. The thread is made for talking.
    @Cervisial If you click the AIR then the block is null, call a method on it and you get a NullPointerException, add a null check.
     
  6. Offline

    Cervisial

  7. Offline

    madtomic

    @Cervisial

    The null error is fix but end crystal is still blowing up when interacted.

    @timtower
    Understood. Like he said, you weren't around to approve his post so we talked a bit on PM. We'll keep it here now.
     
    timtower likes this.
  8. Offline

    Cervisial

    Last edited: Apr 22, 2020
  9. Offline

    madtomic

    @Cervisial
    The crystal still blows up when interact with.
     
  10. Offline

    MPG1

    Hey, I've been having trouble blocking this too. If it isn't too hard, could you put in an Override(like so people could still interact if they had that perm). Thanks!
     
  11. Offline

    Cervisial

    I have decided I officially do not like end crystals. I surrender end crystals, you win.
     
  12. Offline

    Legendary_zotar

    @Cervisial i think the problem you had was checking for the End Crystal.
    Since End Crystals are considered entities, you would check for EntityType.ENDER_CRYSTAL , and use PlayerInteractEntityEvent or EntityDamageByEntityEvent

    @madtomic i finished it, here it is: (You can enable/disable player projectiles in the config aswell)
    https://www.dropbox.com/s/brvnk4doevi6d9s/denyEndCrystalPlugin.jar?dl=0
     
    Last edited: Apr 29, 2020
  13. Offline

    madtomic

    @Cervisial
    Thank you for trying.

    @Legendary_zotar
    Thank you for taking up on this. It works just the way I needed it.

    Case closed!
     
    Legendary_zotar likes this.
Thread Status:
Not open for further replies.

Share This Page