• Proceed with caution! Unofficial add-on plugins and abilities are not supported by the ProjectKorra staff. We will not provide support for broken add-ons. Download at your own risk.
  • Hello Guest! Did you know that ProjectKorra has an official Discord server? A lot of discussion about the official server, development process, and community discussion happens over there. Feel free to join now by clicking the link below.

    Join the Discord Server

Eruption [Deleted]

Status
Not open for further replies.

Carbogen

Verified Member
Carbogen updated Eruption with a new update entry:

Eruption 1.1.0

Added a whole lot more configuration and potential for this ability...
The lava pool may now erupt MULTIPLE TIMES!
Random number between 1 and the waves variable in the config.​
More falling lava blocks can be spawned with the projectilesPerBlock variable.
Be cautious as this may be a lag factor...​
Eruption will NOT cancel anymore when the player switches slots.
Read the rest of this update entry...
 

Joeri

Verified Member
When i edit the amount of waves (to 1 or any other amount) i get an error

19.11 17:14:28 [Multicraft] Skipped 22 lines due to rate limit (30/s)
19.11 17:14:22 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:22 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:22 [Server] INFO org.bukkit.event.EventException
19.11 17:14:22 [Server] ERROR Could not pass event PlayerAnimationEvent to ProjectKorra v1.5.0 BETA 17
19.11 17:14:21 [Server] INFO ... 13 more
19.11 17:14:21 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:298) ~[spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:21 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_13]
19.11 17:14:21 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_13]
19.11 17:14:21 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_13]
19.11 17:14:21 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_13]
19.11 17:14:21 [Server] INFO at ca.carbogen.korra.eruption.EruptionListener.onPlayerClick(EruptionListener.java:24) ~[?:?]
19.11 17:14:21 [Server] INFO at ca.carbogen.korra.eruption.Eruption.<init>(Eruption.java:60) ~[?:?]
19.11 17:14:21 [Server] INFO at java.util.Random.nextInt(Random.java:300) ~[?:1.7.0_13]
19.11 17:14:21 [Server] INFO Caused by: java.lang.IllegalArgumentException: n must be positive
19.11 17:14:21 [Server] INFO at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:21 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:21 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:21 [Server] INFO at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:21 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734) [spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:21 [Server] INFO at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:21 [Server] INFO at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:186) [spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:21 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInArmAnimation.handle(PacketPlayInArmAnimation.java:40) [spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:21 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInArmAnimation.a(PacketPlayInArmAnimation.java:28) [spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:21 [Server] INFO at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:1087) [spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:21 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:494) [spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:21 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:509) [spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:21 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:21 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot_1.7_1.8_compatible.jar:git-Spigot-1.7.9-R0.2-205-g2c31986]
19.11 17:14:21 [Server] INFO org.bukkit.event.EventException
19.11 17:14:21 [Server] ERROR Could not pass event PlayerAnimationEvent to ProjectKorra v1.5.0 BETA 17
 

Carbogen

Verified Member
When i edit the amount of waves (to 1 or any other amount) i get an error
Hey Joeri, I found the line of code the error is coming from. However, it should not be giving any errors... That line goes like this:

Code:
waves = random.nextInt(maxwaves - 1) + 1;
Where waves is an integer, maxwaves is the number from the config, and random.nextInt(integer) gives you a random integer from 0 to integer. I substract one from the maxwaves variable then add it back after, to make sure there is at least one wave. I'll tweak that line around a bit, and try to get what the error is caused by.

Just tell me, what did you set your config variable waves to? Make sure it's greater than zero ;)
 

Joeri

Verified Member
Hey Joeri, I found the line of code the error is coming from. However, it should not be giving any errors... That line goes like this:

Code:
waves = random.nextInt(maxwaves - 1) + 1;
Where waves is an integer, maxwaves is the number from the config, and random.nextInt(integer) gives you a random integer from 0 to integer. I substract one from the maxwaves variable then add it back after, to make sure there is at least one wave. I'll tweak that line around a bit, and try to get what the error is caused by.

Just tell me, what did you set your config variable waves to? Make sure it's greater than zero ;)
I set it to 1, and it gave the error
 

Carbogen

Verified Member
I set it to 1, and it gave the error
Thanks, I just realized something important! I never knew, but nextInt(number) is exclusive (up to and not including number.) So basically it was going from 0 to 0, and crashing. I changed the line to

Code:
waves = random.nextInt(maxwaves) + 1;
And it worked. This also explained why I never saw a 5 wave eruption... it only went up to 4!

Thanks for telling me about this. I learned something! :p

Will push an update right now :)
 

jokru

Verified Member
Carbogen, none of your abilities seem to work on my server... Why could that be? Other makers' abilities work fine, but not yours... I really would like to try them out.
 

Carbogen

Verified Member
Carbogen, none of your abilities seem to work on my server... Why could that be? Other makers' abilities work fine, but not yours... I really would like to try them out.
If you are running on Java 8 or on Minecraft 1.8 there could be issues. Java 8 brought changes to the language which may make the code I use incompatible, and Minecraft 1.8 has several bugs when it comes to fallingblocks ;)

Try running Minecraft 1.7.10 on Java 7 and you should be fine. Let me know if you are still experiencing difficulties.
 
Status
Not open for further replies.
Top