Filled Iron Door Based on Region

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

  1. Offline

    AlwaysAllstar

    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

    AlwaysAllstar

  3. Offline

    -_Husky_-

  4. Offline

    AlwaysAllstar

    This doesn't work, you can't open the iron doors at all unless you have the permission 'irondoor.open', 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

    AdamZeDuck

    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.

    Edit:
    Here it is. https://www.spigotmc.org/resources/ironregion.71488/
    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

    AlwaysAllstar

    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

    BeakerThe1st

    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 https://www.oracle.com/technetwork/java/javase/downloads/index.html

    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

    AlwaysAllstar

    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

    BeakerThe1st

    Only because you asked nicely ;)

    https://drive.google.com/file/d/1ig8peOh-d759ychkIiIxEsZTZZAceclO/view?usp=sharing

    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

    AlwaysAllstar

    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

    BeakerThe1st

    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.

Share This Page