Fizzled v0.2.5 Torches burn out after a set time and on random you might be able to pick one or two back up! The torches still burnout even when the player is offline. Conversion Chart for timer: 20 Ticks //1 second 60 seconds //1 minute 20 * 60 = 1200 //1 minute 1200 + 1200 = 2400 //2 minutes 2400 + 1200 = 3600 //3 minutes 3600 + 1200 = 4800 //4 minutes 4800 + 1200 = 6000 //5 minutes Do your own math. follow the pattern. Config: Code: # Fizzled Fizzled: timer: 1200 Download: http://dl.dropbox.com/u/1015938/Fizzled.jar Changelog: vo.1 released. torches burn out at a configurable time. randomly get back torches. v0.2 removed chances of getting back torches. this will stop all lag from occuring v0.2.5 updates to 1.2.5 v0.3 removes unneeded code. This was cuasing the negative error. STOP THE SERVER.DELETE FIZZLED CONFIG AND INSTALL v0.3 AND RESTART
ok so ill just remove the random chances system. ill do that when i get on my home pc v0.2 removed chances of getting back torches. this will stop all lag from occuring EDIT by Moderator: merged posts, please use the edit button instead of double posting.
You are my God, op. D: Code: 12:30:01 AM [WARNING] Task of 'Fizzled' generated an exception 12:30:01 AM java.lang.IllegalArgumentException: n must be positive 12:30:01 AM at java.util.Random.nextInt(Unknown Source) 12:30:01 AM at us.topgear93.fizzled.Fizzled$1.run(Fizzled.java:57) 12:30:01 AM at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126) 12:30:01 AM at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:520) 12:30:01 AM at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) 12:30:01 AM at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) EDIT by Moderator: merged posts, please use the edit button instead of double posting.
edit:/// I know whats wrong ill push another update. v0.3 removes unneeded code. This was cuasing the negative error. STOP THE SERVER.DELETE FIZZLED CONFIG AND INSTALL v0.3 AND RESTART EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Code: 1:27:49 PM [SEVERE] Cannot load plugins\Fizzled\config.yml 1:27:49 PM org.bukkit.configuration.InvalidConfigurationException: mapping values are not allowed here 1:27:49 PM in "<string>", line 3, column 25: 1:27:49 PM timer: 600 randomdrop: 6 1:27:49 PM ^ 1:27:49 PM at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) 1:27:49 PM at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:143) 1:27:49 PM at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:109) 1:27:49 PM at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:177) 1:27:49 PM at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:117) 1:27:49 PM at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:111) 1:27:49 PM at us.topgear93.fizzled.Fizzled.onBlockPlace(Fizzled.java:56) 1:27:49 PM at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 1:27:49 PM at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 1:27:49 PM at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 1:27:49 PM at java.lang.reflect.Method.invoke(Unknown Source) 1:27:49 PM at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) 1:27:49 PM at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 1:27:49 PM at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) 1:27:49 PM at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:97) 1:27:49 PM at net.minecraft.server.ItemBlock.interactWith(ItemBlock.java:71) 1:27:49 PM at net.minecraft.server.ItemStack.placeItem(ItemStack.java:83) 1:27:49 PM at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:303) 1:27:49 PM at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:636) 1:27:49 PM at net.minecraft.server.Packet15Place.handle(SourceFile:39) 1:27:49 PM at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) 1:27:49 PM at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) 1:27:49 PM at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169) 1:27:49 PM at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) 1:27:49 PM at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554) 1:27:49 PM at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) 1:27:49 PM at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) 1:27:49 PM Caused by: mapping values are not allowed here 1:27:49 PM in "<string>", line 3, column 25: 1:27:49 PM timer: 600 randomdrop: 6 1:27:49 PM ^ 1:27:49 PM at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:733) 1:27:49 PM at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:305) 1:27:49 PM at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:179) 1:27:49 PM at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:563) 1:27:49 PM at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) 1:27:49 PM at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146) 1:27:49 PM at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230) 1:27:49 PM at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) 1:27:49 PM at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237) 1:27:49 PM at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) 1:27:49 PM at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123) 1:27:49 PM at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106) 1:27:49 PM at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121) 1:27:49 PM at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480) 1:27:49 PM at org.yaml.snakeyaml.Yaml.load(Yaml.java:399) 1:27:49 PM at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53) 1:27:49 PM ... 26 more Ok, this is just a problem with the config when it made it, I put each thing on its own line and it works now. Its just when the plugin made the first config it wasnt set up right. Whenever they go out it always gives the torch back...even when setting the random drop to 0. Is it supposed to do this? If so then its kind of pointless because I want the torches to disappear so they will need to make more. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Runs perfect! Thank you so much and thanks for the quick help and updates! This is perfect for my Hunger Games game tonight...now only if I could get my plugin working! Do you happen to know how to work with onPlayerJoin() ?
Noo why do you abandon such a great plugin? D: I really want to try this plugin but the link is dead.
It's not working Code: 2012-07-02 16:10:52 [SEVERE] Could not load 'plugins\Fizzled.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:201) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(Unknown Source) at java.util.jar.JarFile.<init>(Unknown Source) at java.util.jar.JarFile.<init>(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:189) ... 7 more
Caused by: java.util.zip.ZipException: error in opening zip file its not my problem. Some where on your end is the problem. BTW i dont support this anymore.