[INACTIVE][MECH] NoEscape 1.0 - Anti-teleport and prisoner/jail system for Towny [1000]

Discussion in 'Inactive/Unsupported Plugins' started by SwearWord, Jun 8, 2011.

  1. Offline

    SwearWord

    Plugin: NoEscape
    Version: 1.0

    Made this before the Towny source was released and have been having a lot of fun with it on my server and I figured I'd release it. If you run the Towny plugin this addon will add a few features.

    Firstly, it disables all teleporting in unfriendly towns, no more hit and run tactics.

    Second, when a player is killed in an unfriendly town, he will be sent to their prison.

    Third, when a defending player is killed in his own town, he is "kidnapped" and sent to his killer's jail.

    Fourth, a jailed teammate can be rescued if a friendly player is withing 5 blocks of them. The jailed player needs to type /escape and will be teleported to the rescuer.

    Demo:
    Server-Address: opencraft.tk

    Commands:
    /townjail - a mayor can issue this to set their town jail
    /escape - attempt to teleport to a teammate within 5 blocks.

    Download
    Here

    Features:
    • Disables teleport in foriegn towns.
    • Killed players are captured as prisoners of war, both offense and defense.
    • Prisoned players can be rescued by nearby teammates.
    Changelog:
    • Initial Release
     
    maetthew likes this.
  2. Offline

    SwearWord

    Fixed the bug.
     
  3. Offline

    fatmarley

    Would it be possible for this only to be active when war is active in towny?

    I dont think I would like all the whining if this was a normal occurance.
     
  4. Offline

    SwearWord

    I don't even use the "war" system. I don't like it, I'd rather towns decide when they attack, etc. I could disable it during non-wartime but it's not really that high on the todo list.
     
  5. Offline

    fatmarley

    Then I am curious, how much of an issue has it been for your players and moderators to police?
     
  6. Offline

    SwearWord

    Not much, people generally come to an agreement where the town pays for a release. A lot of times the people just release them for free.
     
  7. Offline

    MeinerHosen

    I run towny on a survival map and a pvp nether map and want just the nether map to have this jail function to avoid issues.

    Is there a way you could add permissions? This looks like an awesome way to foster team work and realistic fighting.
     
  8. Offline

    SwearWord

    Yeah it prevents endless raids with no consequence. What are you looking for with permissions? Allow people to teleport?
     
  9. Offline

    MeinerHosen

    I'm looking to allow people to teleport as well as disallowing people from capturing others in their towns on the survival map but then using this plugin in the nether map.

    So just having some way to disable this plugins effects on the survival map and enabling it on the nether map would be nice.

    Also, does "unfriendly towns" mean any town other than your own? How is that decided?
     
  10. Offline

    SwearWord

    Unfriendly is any other town that is not in your nation. So any town where you can hurt their players.

    Hmmm so you're not asking for multiworld support, you just want to give permissions to players on the Survival map to be exempt from being jailed. I can do that, not for a few days though but it won't be too hard.
     
  11. Offline

    fatmarley

    got an error loading it. did i miss something in the setup?

    Code:
    [SEVERE] Could not load 'plugins\NoEscape.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
        
    need more?
     
  12. Offline

    SwearWord

    Had it ever worked? The way I have it hook into Towny is pretty ghetto, not sure if it will always work.
     
  13. Offline

    MeinerHosen

    Figured permissions was the easiest way to have multiworld support :p

    Thanks and looking forward to it :D
     
  14. Offline

    Devboi

    this would be perfect for our server.....unfortunately it doesn't work.... Just get the old Unknown command error.
     
  15. Offline

    SwearWord

    Hmm it's possible I uploaded the wrong thing, try again.
     
  16. Offline

    fatmarley

    That error was from my initial install.
     
  17. Offline

    Antecedo

    Wow - good job!

    I think to kidnap someone you should have to kill them, and have like 20 string in your inventory (which is auto used) that would be so cool!!

    Thanks!
     
  18. Offline

    SwearWord

    Excellent idea. I was trying to think of a way to do this.
     
  19. Offline

    Devboi

    Re downloaded, still not working, I am using the newest towny version for cb860 and it just says unknown command.
    do I need to restart towny plugin or something?
     
  20. Offline

    SwearWord

    Do other features like disabling teleport in foreign towns work? If not try re-downloading again, I made sure 100% that I'm exporting the correct thing.
     
  21. Offline

    Zalastri

    Trying this in my server and it just doesn't seem to make sense. IMO:

    1. You should only jail someone if they die on your land.
    2. You should have a chance to escape every set interval of time (Or some escape method other then manually)
    3. Town owners should have an unjail command
    4. Something needs to be done about the way it manages jailed players. I just had someone die in their own town and get teleported back to the jail they were in about ten minutes prior. What actually constitutes being unjailed? Walking out doesn't seem like it's working.
    5. Perhaps an optional global jail that can be set to override the town jail options. Sort of a federal prison.
    6. Speaking of federal prison, a town that is a member of a nation should send all their prisoners to a "national" jail.

    Awesome plugin/idea though. I dig the idea of an automatic jail system.
     
  22. Offline

    fatmarley

    Would like more information? This is the problem that I stated earlier, and this is after a few restarts,.

    Code:
    2011-06-16 09:39:17 [SEVERE] Could not load 'plugins\NoEscape.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:172)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:194)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:117)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:109)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoClassDefFoundError: ca/xshade/bukkit/towny/NotRegisteredException
        at com.SwearWord.NoEscape.NoEscape.<init>(NoEscape.java:29)
        ... 13 more
    Caused by: java.lang.ClassNotFoundException: ca.xshade.bukkit.towny.NotRegisteredException
        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:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 14 more
     
  23. Offline

    SwearWord

    @fatmarley
    I think I know why this is happening. I tried to cheat and take the easy way out when I hooked into Towny and it's not working. I'll spend some time fixing this.

    @Zalastri
    When someone is "jailed" nothing happens except getting teleported to the jail. The plugin only fires when someone dies, sees who killed then and/or where they died, and sets their respawn point. Our jails all have iron doors that lead out the town so they can teleport back home. If people were jailed, and then die in their own town due to mobs or falling damage it SHOULD spawn them at their town spawn, since they died on their own land. I'll double check.

    This is sort of really specific to my server and the way we play so I knew it wouldn't be something everyone liked. You have good ideas but I'm not really up to developing this plugin further, maybe throw them onto the plugin requests board.

    EDIT:
    @Zalastri
    I just double checked, I died in every possible way in my own town after being jailed. I don't end up back in the jail.
     
  24. Offline

    Ghostetr

    i just get the message
    could not load 'plugins\noEscape.jar' in folder plugins
    is it just me being a idiot and doing somthing wrong ?
    or is it somthing else
    //Ghostetr
     
  25. Offline

    SwearWord

    To everyone having problems I applied a quick fix, let me know if it works.
     
  26. Does this "need" towny - Or is there a chance you can create a similar plugin to anti-/home and anti-/spawn and anti-/killme etc. :D
     
  27. Offline

    SwearWord


    That would make this a completely different plugin. Why don't you do it yourself with your fancy plugin developer title :D
     
  28. Offline

    Ghostetr

    sry but it dont work. dont work for me atleast
    but ty for trying to fix it so soon :D
     
  29. Offline

    SwearWord

    Download it one more time and if it errors, give me as much of it as you can.
     
  30. Offline

    Ghostetr

    okay will do give me 2 min
     

Share This Page