Inactive [MECH] AntiPortals v1.1 - Disable vanilla Nether portals [1337]

Discussion in 'Inactive/Unsupported Plugins' started by KoryuObihiro, Aug 19, 2011.

  1. Offline

    KoryuObihiro

    AntiPortals
    Version: 1.1

    Stops all portal creation events, per-world configurable. Theoretically, this disables all vanilla Nether portals in Bukkit.

    Download Latest JAR
    Archive

    Changelog:
    (8/24/2011)Version 1.1[1060-1327]
    • Added multiworld configuration. See the config.yml.
    (8/19/2011)Version 1.0[1060+]
    • Released.
    This is one of the Koryu's Minimalistic Plugins series. To install, simply drop into the plugins folder and enjoy.
     
    kahlilnc likes this.
  2. Offline

    thehutch

  3. Offline

    Retricide

    Would it be possible, in the future, to make a config file to allow per-world nether/nether portals?
    I imagine this might be difficult, though I honestly haven't the slightest clue.

    Thanks for an anti-Nether plugin though, I've really been in need of one!
     
    KoryuObihiro likes this.
  4. Offline

    KoryuObihiro

    Might be. That would involve configuration, but I don't suppose it would be difficult at all.
     
  5. Offline

    Retricide

    Awesome! A configuration file would be what I want. Permissions can get complicated and usually fail to accomplish a simple purpose in the long run.
    Thanks! Hope to see this added soon!
     
  6. Offline

    efstajas

    Can't you just set "allow-nether" to false in server.properties?
    Edit.: Or does this also stop the creation of portal blocks when a portal is ignited?
     
  7. Offline

    KoryuObihiro

    Yeah. Just doesn't let portals get generated normally.
     
  8. Offline

    efstajas

    Aah okay. Multiworld support would be nice. :)
     
  9. Offline

    Pythros

    What do you mean by normally?
    I want to be able to only have on Nether gate/portal without everyone else creating one. Is that possible with your mod?
     
  10. Offline

    KoryuObihiro

    Are you seeking a limit based on the number of portals, or based upon Permissions?
     
  11. Offline

    Pythros

    Limit to one portal. There was a slight typo in my post :)
     
  12. Offline

    KoryuObihiro

    Nope, but it could be done. I have some time to code now, so we'll see if I can't get this done by tonight.

    EDIT: If you don't mind waiting a bit, I could implement this, but for now what would have to be done is a scanning algorithm that would essentially scan your entire world. This is rather yucky, and I wonder if perhaps your needs wouldn't be better suited by permissions and/or limitation of obsidian on your server?

    In the meantime, I'll be implementing a simple blacklist/whitelist config for worlds, as per @Retricide's request.
     
  13. Offline

    Pythros

    It doesn't matter what it is to me, I just want people to stop making new portals except for the "main" one. :cool:
     
  14. Offline

    KoryuObihiro

    I'll probably shoot for Perms integration then - I've been meaning to develop a generic plugin template for SuperPerms/Perms anyway.

    Released 1.1.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  15. Offline

    Endimmion

    Does it work with 1.8.1 and do you have any ETA for the Perms integration?
     
  16. Offline

    KoryuObihiro

    It should work with 1.8.1 - very little of the 1.7.3 Bukkit API has actually broken, so I have sincere doubts it'll be a problem.

    As for Perms, there's currently no easy way to determine if/what player triggered the activation of a portal - it's not included as part of the event, but I suppose a pull request might be in order.
     
  17. Offline

    Ocram

    2011-09-20 21:11:02 [INFO] [AntiPortal] 1.1 enabled.
    2011-09-20 21:11:02 [INFO] [AntiPortal] No config found, auto-generating a complete blacklist of all worlds...
    Everytime i change my config it get replaced, bug?
     
  18. Offline

    KoryuObihiro

    Might be. I'll try reproducing it later today, when I have time. What are you changing?
     
  19. Offline

    Ocram

    Tried to remove two worlds from Blacklist, as follows:
    Conf (open)
    usingBlacklist: true
    worlds:
    - city
    - city_nether
    - world
    - world_nether
    - provasky
    changing to:

    usingBlacklist: true
    worlds:
    - city
    - city_nether
    - provasky

    I'm using Notepad++, same way I change all other config files, this one is the only giving problems.
    Thanks.
    Edit: just found it always creates a new conf, no matter if I change it.
     
  20. Offline

    Aeron

    Working great on recomended 1185 build of CB, but I have a suggestion, can you make it so that those people who are in the OPs list can make portals and everyone else cant (without any permissions nodes or anything)
     
  21. Offline

    KoryuObihiro

    As stated before, it's impossible to actually apply perms to this without some Java trickery that would really be more trouble than it's worth. I might suggest to you alternatives, like a plugin that actually prevents people from using it with Perms - the event still doesn't give any indication as to what actually triggered portal creation.
     
  22. Offline

    Television

    Why not try the PlayerInteractEvent?
     
  23. Offline

    KoryuObihiro

    That could be used to prevent direct ignition of a portal, and actually a good suggestion...but it won't stop somebody determined to use MC physics to get a fire in there.
     
  24. Offline

    kahlilnc

    MM could you add permissions support or even allow ops to make portals ? :O
    nvm read the previous posts. :D
     
  25. Offline

    VoltageB

    The next recommended build is for Minecraft 1.2, R5, and I and everyone who uses this plugin will greatly appreciate it if you can get a head start on the plugin so it's update to support the new revision when Minecraft 1.2 is officially released along with Bukkit R5.
     
  26. Offline

    axebyte

    Yeah need this plugin back and working, awesome plugin
    Currently getting this on bukkit 1.2 beta +
    Code:
    [SEVERE] Could not load 'plugins\AntiPortal.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bu
    kkit/event/world/WorldListener
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:148)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:287)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:211)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
    ationManager.java:53)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.NoClassDefFoundError: org/bukkit/event/world/WorldListener
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(Unknown Source)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$000(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:41)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:29)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at com.KoryuObihiro.bukkit.AntiPortal.AntiPortal.<init>(AntiPortal.java:
    23)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
     
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:144)
            ... 8 more
    Caused by: java.lang.ClassNotFoundException: org.bukkit.event.world.WorldListene
    r
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:41)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:29)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 27 more
     
  27. Offline

    axebyte

    Since there been no respounce in this since last year, any out there willing to pick this up or create something that functions the same.. I really hate the idea of having to limit lighters and other things to prevent random nether portals from sprouting all over.

    anyone ? :D
     
  28. Offline

    korsakik

    When the update on 1.2.x?
    Hello from Russia
     
  29. Offline

    Mista Epic

    Most retarded plugin, ever.
     
  30. Offline

    yobu

    so let me get this right, no one can create protals.
    because i have a pugin to teloport to the nether

    also is this 1.2.5

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016

Share This Page