Filled Iron Door Based on Region

Discussion in 'Plugin Requests' started by AlwaysAllstar, Sep 15, 2019.

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


    Plugin category: Add-On?

    Minecraft version: 1.14.4

    Suggested name: IronRegion

    What I want: A simple plugin that is dependent on WorldGuard. If a player is the member or owner of a region, they are allowed to open iron doors just like a normal doors, no redstone or buttons needed. If the iron door is in a region they are not a member of, they cannot open it.

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions needed for this plugin.

    When I'd like it by: As soon as possible, but anytime is greatly appreciated! :D
  2. Offline


  3. Offline


  4. Offline


    This doesn't work, you can't open the iron doors at all unless you have the permission '', but once that is given it overrides WorldGuard; You are still able to open doors regardless if you are a member of the region or not. It gives the WorldGuard message saying you can't do this, yet the door still opens/closes fine. If there's a plugin that may work better, that would be great. If not, no worries! I'll find some other way around what I want to do. Thanks! :)
  5. Offline


    I'll have a look and see what I can do.

    Looking at Husky's source code, it doesn't hook into worldguard whatsoever so I'll rewrite the plugin for you.

    Here it is.
    I've made numerous improvements to Husky's plugin including but not limited to: playing a sound when the door is open, cancelling when blocks are placed on the door, allowing for sneakclick on doors to place blocks, actually listening to worldguard permissions, and a few more.
    Last edited: Sep 21, 2019
  6. Offline


    Hey, thank you so much for making this plugin and adding lots more features. The problem is when I restart the server I get this message and the plugin doesn't work:

    [Server] INFO org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/AdamZeDuck/IronRegion/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 22.09 01:22:08
    [Server] ERROR Could not load 'plugins/IronRegion.jar' in folder 'plugins'

    How would I go about fixing this? Thank you again! :)
  7. Offline


    My plugin was written with the latest version of java and you are currently using an old version.
    Please delete your current version of java and install this one

    I'm sure @timtower is willing to answer any questions you may have about java as they seem like the go-to contributor in this forum ;)
  8. Offline

    timtower Moderator Moderator

    @BeakerThe1st You can also compile with a lower version as not every host is updated yet.
  9. Offline


    I've reached out to my hosting service and I was told Java can't be updated. If possible, @BeakerThe1st could you compile it with a lower version as timtower said?
    Last edited: Sep 22, 2019
  10. Offline


    Only because you asked nicely ;)

    This version of IronRegion was compiled with Java 8 which I believe most hosts are using. To make the plugin compatible with Java 8, I had to make some changes to the code and I haven't tested them. The program I used to make the plugin hasn't detected any errors in the code so it should be good but be sure to give me a yell if you encounter any errors.

    Out of curiosity, what reason did your host give for not updating to Java 13?
  11. Offline


    I've installed this and it seems to be working perfectly! Thank you so much for this. :D I did a live chat with my hosting service and was told to update Java they'd have to update the entire node, which they wouldn't do.
  12. Offline


    Sounds like a lazy host to me :p

    You're very much welcome. Be sure to give me a shout on Spigot if you need anything!

    Edit: Please mark this as solved for administration purposes :)
    AlwaysAllstar likes this.
Thread Status:
Not open for further replies.

Share This Page