[INACTIVE][FUN] Quarantine v0.7 - Survive the zombie horde!

Discussion in 'Inactive/Unsupported Plugins' started by DDoS, Aug 29, 2011.

  1. Offline

    DDoS

    Quarantine

    [​IMG]

    Survive the zombie horde!
    Quarantine lets you create special zones where mobs spawn and roam around, which players can then join to try to fight for their survival. To improve their odds, they can buy items or sell them. Quarantine has a localized economy, where players get money from killing mobs or selling items. It also has support for leaderboards backed by a Redis or MySQL database. You can lock buttons with keys (which players can buy). Also, the player's last health, inventory and locations are saved, so they can resume gameplay at any time. When exiting a zone, pre-game health is restored. This is a hard core survival game, if you die, all your data is deleted, and you loose all your score. Score is obtained by killing mobs, and can be set for each mob type.
    Requires WorldGuard, Regios or Residence to work

    Bukkit dev link: this
     
    Spiritwind likes this.
  2. Offline

    DDoS

    The spawning is sub zone based, in the new version. Basically, for each sub zone, you have X mobs of one or more type (you can define those) that spawn in a sub zone. They may spawn anywhere in the sub zone, but they're always attached to that sub zone. So even if a mob moves from sub zone "sub1" to sub2", if it dies it will respawn in the sub zone it belonged to ("sub1").

    So, let's say you've got a room, and on the other side you've got a door that leads out to a secure room with stuff to buy, well you set a spawning region for that first room with, let's say, 5 spiders and/or zombies. A mix of them will spawn there, and the player must fight or avoid them to reach the other room. If a mob from that room dies, it will spawn back in the room.

    There's no fixed spawn points, the plugin creates as many random spawn point as they're mobs that should spawn, unless the room is too small and it can't find enough spawn location. Then, when a mob needs to be spawned, one random location is chosen, and the mob gets spawned there. Mob types are also fixed for a location. The plugin randomly attributes mob types from the config to the new spawn points.

    The spawn point list is cleared if the zone is completely empty of players, to save memory, and so, when a player joins later, his spawns are completely different.

    When generating spawns, the plugin looks for a solid block beneath, snow or air above, and then one more air block above the last one. Since I'm using an iterator to get the blocks, I have to skip about 3 of every five block (randomly again), else the mobs would all spawn on one side of the sub zone.

    VoilĂ , 2 weeks of work, and v0.2 is done! Full rewrote, tons of new stuff, and now, on Bukkit dev!

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

    dakoslug

    So I put WorldEdit and WorldGuard in the main folder? I read that too, hmm I'll try that.
     
  4. can someone help me with this? i dont know why it cant download the library for jedis-2.0.0.jar and i was also wondering if anyeone know how to fix the "is the plugin up to date?" error.

    Thanks

    Code:
    161 recipes
    17 achievements
    12:57:52 [INFO] Starting minecraft server version Beta 1.8.1
    12:57:52 [INFO] Loading properties
    12:57:52 [INFO] Starting Minecraft server on 192.168.1.14:25565
    12:57:52 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1035-g9e14269-b1137jnks (MC: 1.8.1)
    12:57:53 [INFO] [Quarantine] Downloading 'jedis-2.0.0.jar' library.
    12:57:55 [INFO] [Quarantine] Couldn't download 'jedis-2.0.0.jar' library.
    12:57:55 [INFO] [Quarantine] Downloading done.
    12:57:55 [INFO] [Permissions] (Yeti) was initialized.
    12:57:55 [INFO] [Permissions] version [3.1.6] (Yeti)  loaded
    12:57:55 [INFO] Preparing level "brandonn95's server"
    12:57:55 [INFO] Default game type: 0
    12:57:55 [INFO] Preparing start region for level 0 (Seed: 2826015308063024780)
    12:57:56 [INFO] Preparing spawn area: 36%
    12:57:57 [SEVERE] Error occurred while enabling BadBlocks v0.9 (Is it up to date?): org/bukkit/configuration/file/YamlConfiguration
    java.lang.NoClassDefFoundError: org/bukkit/configuration/file/YamlConfiguration
            at me.dexy.BadBlocksConfig.<init>(BadBlocksConfig.java:15)
            at me.dexy.BadBlocks.onEnable(BadBlocks.java:21)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:885)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ClassNotFoundException: org.bukkit.configuration.file.YamlConfiguration
            at java.net.URLClassLoader$1.run(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: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)
            ... 12 more
    12:57:58 [SEVERE] Error occurred while enabling Essentials v2.6.3 (Is it up to date?): ENDERMAN_PICKUP
    java.lang.NoSuchFieldError: ENDERMAN_PICKUP
            at com.earth2me.essentials.Essentials.onEnable(Essentials.java:186)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:885)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    12:57:58 [INFO] Essentials: Using Permissions 3 based permissions.
    12:57:58 [INFO] Loaded EssentialsChat build 2.6.3 by: essentials team
    12:57:58 [INFO] Loaded EssentialsSpawn build 2.6.3 by: essentials team
    12:57:58 [INFO] [InstaBreak] Starting! (version 2.0 by R3ality)
    12:57:58 [INFO] [InstaBreak] Found a permission system, using it!
    12:57:58 [INFO] [MinecraftViewer] v1.0d Plugin Enabled.
    12:57:58 [INFO] [MineMaze]v 1.5 is enabled
    12:57:58 [INFO] WorldEdit 4.7 enabled.
    12:57:58 [INFO] [MinecraftViewer] Query running on 192.168.1.14:25565
    12:57:58 [SEVERE] WorldEdit: Unable to read default configuration: config.yml
    12:57:58 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    12:57:58 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugin for permissions.
    12:57:58 [SEVERE] WorldGuard: Unable to read default configuration: blacklist.txt
    12:57:58 [WARNING] WorldGuard blacklist does not exist.
    12:57:58 [INFO] WorldGuard: (brandonn95's server) Single session is enforced.
    12:57:58 [INFO] WorldGuard: (brandonn95's server) TNT ignition is PERMITTED.
    12:57:58 [INFO] WorldGuard: (brandonn95's server) Lighters are PERMITTED.
    12:57:58 [INFO] WorldGuard: (brandonn95's server) Lava fire is blocked.
    12:57:58 [INFO] WorldGuard: (brandonn95's server) Fire spread is UNRESTRICTED.
    12:57:58 [INFO] WorldGuard: Loaded configuration for world 'brandonn95's server"
    12:57:58 [WARNING] WorldGuard: Region file for world "brandonn95's server" missing or inaccessible.
    12:57:58 [INFO] WorldGuard: Unable to register missing event type ENDERMAN_PICKUP
    12:57:58 [INFO] WorldGuard: Unable to register missing event type ENDERMAN_PLACE
    12:57:58 [INFO] WorldGuard 5.3 enabled.
    12:57:58 [SEVERE] Error occurred while enabling Quarantine v0.2.1 (Is it up to date?): me.DDoS.Quarantine.Quarantine.getConfig()Lorg/bukkit/configuration/file/FileCo
    nfiguration;
    java.lang.NoSuchMethodError: me.DDoS.Quarantine.Quarantine.getConfig()Lorg/bukkit/configuration/file/FileConfiguration;
            at me.DDoS.Quarantine.Quarantine.onEnable(Quarantine.java:54)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:885)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    12:57:58 [SEVERE] Error occurred while enabling SimpleJail v1.6.5 (Is it up to date?): org.bukkit.Server.getConsoleSender()Lorg/bukkit/command/ConsoleCommandSender;
    java.lang.NoSuchMethodError: org.bukkit.Server.getConsoleSender()Lorg/bukkit/command/ConsoleCommandSender;
            at com.imjake9.simplejail.SimpleJail.onEnable(SimpleJail.java:47)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:885)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    12:57:58 [INFO] Server permissions file groups.yml is empty, ignoring it
    12:57:58 [INFO] Done (0.327s)! For help, type "help" or "?"
    12:57:58 [INFO] New max size: 484
    12:57:58 [INFO] New max size: 784
    >
     
  5. Offline

    DDoS


    Update your craftbukkit build. Quarantine does not support builds older then 1317 (which is also the source of many other errors in your log).

    Also, if you can't download the jedis jar, here's the link, make a "lib" folder in your Quarantine folder (if necessary), and place it there. Make sure you get version 2.0.0.

    Link: https://github.com/xetorthio/jedis/downloads
     
  6. thanks! ill update now, i thought i was on the latest build. guess not :)

    EDIT: Thanks again, i just updated and now everything is working perfect including my /setjail command ! :D
     
  7. Offline

    puffnuget

    Hey im trying to make the vid for you but I am kinda stuck :(
     
  8. Offline

    DDoS

    Well, can you explain a little bit more your problem?
     
  9. Offline

    puffnuget

    I cant make the arena area
     
  10. Offline

    DDoS

    Well, what are you trying to do? What errors are you getting? Have you followed the WorldGuard tutorial to setting up regions?
     
  11. Offline

    needle44

    Ok well it says Quarantine isn't up to date x.x! Could you please check this for me and tell me what's wrong i'm really interested in this plugin. Here's the link to all of the cmd. http://pastebin.com/yDHA0Eek Thanks for reading, reply asap.

    Hmm don't think it was Qurantines fault most likely mine well a video tutorial would be very helpful right about now x.x!

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

    DDoS

    Your world, in the config, is invalid. Make sure it's the same name as your main world, where you want to set up the Quarantine zone.
     
  13. Offline

    cheer60823

    what are the commands for Quarantine? :)

     
  14. Offline

    DDoS

    Please check the BukkitDev page...
     
  15. Offline

    cheer60823

    thank you

    wait... WTF?????

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

    DDoS

    Did you even bother to read the OP? Are you even aware that plugins are now moving over to a new site?
     
  17. Offline

    dakoslug

    So if I were to put WorldGuard in my craftbukkit folder w/o it being in plugins folder, how will I define regions?
     
  18. Offline

    DDoS

    Ya, I had just thought about that. You'll need WorldGuard in your plugins at least.
     
  19. Offline

    dakoslug

    Aww I was thinking of a mega miracle and that I could define using regios because the WorldGuard API, can I somehow dedicate a world to the plugin?
     
  20. Offline

    DDoS

    I don't know, see the plugin's wiki.
     
  21. Offline

    Zealouszill

    So I have a couple of questions for this plugin, because its not working for me.


    Can I get an example of what the Quarantine Plugin Config file looks like?
    Do I need to put any information in the World Guard/World/config.yml item?


    I've made sure that all my zones including subzones match on both configs. I make sure all the information is correct. And when I start it over again I get this error:

    17:31:13 [INFO] [Quarantine] WorldGuard detected.
    17:31:13 [WARNING] [Quarantine] Permission system not detected, defaulting to OP
    17:31:13 [INFO] [Quarantine] Couldn't load zone zone1, no config.
    17:31:13 [INFO] [Quarantine] Couldn't load zone zone1 on start up.
    17:31:13 [INFO] [Quarantine] Plugin enabled. v0.2.1, by DDoS
    17:31:13 [WARNING] Server permissions file permissions.yml is not valid YAML.
    java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
    at org.bukkit.craftbukkit.CraftServer.loadCustomPermissions(CraftServer.java:433)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:160)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

    Thanks so much for your help! I'm so excited to play this plugin and so are my friends!
     
  22. Offline

    DDoS


    That's not a Quarantine error : "[WARNING] Server permissions file permissions.yml is not valid YAML.".

    Post your permissions.yml at the root of your server directory, maybe I can help with that.

    Also, post your config.yml for Quarantine, you're doing something wrong with it too.

    "sub_zones:mobspawn1, mobspawn2, mobspawn3" should be "sub_zones:" (no need to list the zones, the plugin can get them since they're the keys for the sub_zones section).

    "zone1: cityscape" should be "cityscape" (same thing as above, cityscape is a key of the Zones sections).

    Finally, you should replace "zone1" in "Load_on_start" with "cityscape" if you want it to load when the server boots.

    And just a quick explanation of the key and section thing:

    Code:
    section1:
      key1:
        value1: true
        value2: 10
      key2:
        value1: false
        value2: 102
    section2:
      key3:
        value1: false
        value2: 3
      key4:
        value1: true
        value2: 78
    
    Here, "section1" and "section2" are sections of the config, they have the lowest indent (0 spaces from left margin), they're also called the root keys. "key1" and "key2" are keys of "section1", they're at the second lowest indent (2 spaces) and are under the "section1" root key. "key3" and "key4" belong to "section2". All of these keys have 2 values.

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

    Zealouszill

    Ok, after doing a lot of experiementing. I am currently on a mac trying this plugin, and that is why I'm getting all these errors. I tried it on my PC, and the errors went away. Thanks for the help thou! I really appreciate it! You should try developing this plugin so it works on mac =) You'd be my hero for the rest of my life!

    Ok, so I have it all set up on my PC server, and I have one error. My sub_zones are not showing up like I wish them to, along with my entrance and lobby spots. But my main zone will work for me and load everything. Could it have something to do with my WorldGuard config? I've defined my regions and placed them in my code, it keeps telling me that they don't exist. Heres my code:

    Load_on_start:
    - 'cityscape'
    Leaderboards:
    enabled: false
    redis_db_info:
    host: 'localhost'
    port: 6379
    Zones:
    cityscape:
    max_number_of_players: 10
    world: 'world'
    mob_check_task_interval: 300
    clear_drops: true
    one_time_use_keys: false
    thebox:
    x: 100
    y: 100
    z: 100
    yaw: 0
    pitch: 0
    lobster:
    x: 100
    y: 100
    z: 100
    yaw: 0
    pitch: 0
    starting_money: 35
    starting_kit:
    - '276-1'
    - '310-1'
    - '311-1'
    - '312-1'
    - '313-1'
    money_rewards:
    - 'Zombie:10-15-5'
    - 'Skeleton:15-20-6'
    - 'Spider:15-18-6'
    sub_zones:
    mobspawn1:
    number_of_mobs: 10
    mob_types:
    - 'Zombie'
    - 'Spider'
    - 'Skeleton'
    mobspawn2:
    number_of_mobs: 10
    mob_types:
    - 'Zombie'
    - 'Spider'
    mobspawn3:
    number_of_mobs: 10
    mob_types:
    - 'Zombie'
    - 'Skeleton'

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

    DDoS

    First, I do all my coding and testing on Mac OSX 10.7. Post your errors, I want to know what's the actual cause.

    For the WorldGuard regions: make sure the names ("mobspawn1", etc.) in the config match the names you gave them when you defined the regions (case sensitive!). Also, make sure the world is the right one, else it won't be using the right WG RegionManager, and won't be able to get the regions.

    Again, if you have any errors, or useful log info, post it here.
     
  25. Offline

    Zealouszill

    I made sure that the WorldGuard regions match the code.

    The error its giving me is "Couldn't load zone thebox, not in config."

    And my config is above and has not been changed from what it looks like from above.

    Everything else seems to be working. I continues to tell me this "Finished checking mobs." which I'm guessing is a good thing. Because its actually loaded my "cityscape" main zone

    Thanks for your help =)
     
  26. Offline

    DDoS

    "thebox" and "lobster" shouldn't be there. It should be "entrance" and "lobby" those aren't regions btw. They're just locations you set with commands.
     
  27. Offline

    Zealouszill

    Ok, I'm slowly starting to understand how it going down. And I'm so close to getting it working. I've set my entrance and lobby. But this comes up I type in "/qjoin zone1". An error comes up. Zone1 is my main zone. I got tired of working with names.

    This is the Error:

    Code:
    [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'qjoin' in plugin Quarantine v0.2.1
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:355)
    	at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
    	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    	at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    	at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.IllegalArgumentException: n must be positive
    	at java.util.Random.nextInt(Random.java:250)
    	at me.DDoS.Quarantine.QSubZone.spawnMobs(QSubZone.java:101)
    	at me.DDoS.Quarantine.QSubZone.spawnStartingMobs(QSubZone.java:85)
    	at me.DDoS.Quarantine.QZone.checkSubZonesForMobs(QZone.java:652)
    	at me.DDoS.Quarantine.QZone.addPlayerToLobby(QZone.java:460)
    	at me.DDoS.Quarantine.Quarantine.onCommand(Quarantine.java:188)
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    	... 12 more
    
    
    I'm still able to teleport to my lobby point but it doesn't claim i've joined a zone1.

    And your programming works on a mac, which this server is currently on. I have 10.6 OS
     
  28. Offline

    DDoS

    There's something wrong with your config, make sure the number of mobs to spawn is larger than 0, and that the sub zones are loading properly (if none have loaded, that could explain this error).
     
  29. Offline

    Zealouszill

    So I'm still getting the same error, but do you know why I have mobs spawning when I'm in the lobby, and then when I type /qenter I spawn to entrance and the mobs then disappear
     
  30. Offline

    DDoS

    Make sure your entrance is in the main region you defined for the zone.
     
  31. Offline

    Zealouszill

    So the Lobby is not in the main zone, but the entrance is?
     

Share This Page