diamond-rip / Eden

The best free 1.8 1v1 practice plugin - Offers tons of premium features!
GNU General Public License v3.0
110 stars 36 forks source link

Critical Match End Bug #431

Closed Zatrex12345 closed 1 year ago

Zatrex12345 commented 1 year ago

The bug again in the new update

Zatrex12345 commented 1 year ago

@GoodestEnglish

GoodestEnglish commented 1 year ago

Error in console?

Zatrex12345 commented 1 year ago

[11:44:02 ERROR]: Could not pass event PlayerQuitEvent to Eden v1.1.23-BETA-64b4613 org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:299) ~[server.jar:] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:74) ~[server.jar:] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:67) ~[server.jar:] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:511) [server.jar:] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:496) [server.jar:] at net.minecraft.server.v1_8_R3.PlayerList.disconnect(PlayerList.java:442) [server.jar:] at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1128) [server.jar:] at net.minecraft.server.v1_8_R3.NetworkManager.handleDisconnection(NetworkManager.java:490) [server.jar:] at net.minecraft.server.v1_8_R3.NetworkManager.l(NetworkManager.java:501) [server.jar:] at net.minecraft.server.v1_8_R3.ServerConnection.c(ServerConnection.java:200) [server.jar:] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:924) [server.jar:] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:455) [server.jar:] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:801) [server.jar:] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:685) [server.jar:] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_312] Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:659) ~[?:1.8.0_312] at java.util.ArrayList.get(ArrayList.java:435) ~[?:1.8.0_312] at rip.diamond.practice.config.Config.toStringList(Config.java:128) ~[?:?] at rip.diamond.practice.match.impl.SoloMatch.calculateMatchStats(SoloMatch.java:127) ~[?:?] at rip.diamond.practice.match.Match.end(Match.java:285) ~[?:?] at rip.diamond.practice.match.Match.end(Match.java:254) ~[?:?] at rip.diamond.practice.match.Match.die(Match.java:211) ~[?:?] at rip.diamond.practice.match.listener.MatchListener.onQuit(MatchListener.java:126) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_312] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_312] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_312] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_312] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:297) ~[server.jar:] ... 14 more

Zatrex12345 commented 1 year ago

there is error

GoodestEnglish commented 1 year ago

[11:44:02 ERROR]: Could not pass event PlayerQuitEvent to Eden v1.1.23-BETA-64b4613 org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:299) ~[server.jar:] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:74) ~[server.jar:] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:67) ~[server.jar:] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:511) [server.jar:] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:496) [server.jar:] at net.minecraft.server.v1_8_R3.PlayerList.disconnect(PlayerList.java:442) [server.jar:] at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1128) [server.jar:] at net.minecraft.server.v1_8_R3.NetworkManager.handleDisconnection(NetworkManager.java:490) [server.jar:] at net.minecraft.server.v1_8_R3.NetworkManager.l(NetworkManager.java:501) [server.jar:] at net.minecraft.server.v1_8_R3.ServerConnection.c(ServerConnection.java:200) [server.jar:] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:924) [server.jar:] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:455) [server.jar:] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:801) [server.jar:] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:685) [server.jar:] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_312] Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:659) ~[?:1.8.0_312] at java.util.ArrayList.get(ArrayList.java:435) ~[?:1.8.0_312] at rip.diamond.practice.config.Config.toStringList(Config.java:128) ~[?:?] at rip.diamond.practice.match.impl.SoloMatch.calculateMatchStats(SoloMatch.java:127) ~[?:?] at rip.diamond.practice.match.Match.end(Match.java:285) ~[?:?] at rip.diamond.practice.match.Match.end(Match.java:254) ~[?:?] at rip.diamond.practice.match.Match.die(Match.java:211) ~[?:?] at rip.diamond.practice.match.listener.MatchListener.onQuit(MatchListener.java:126) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_312] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_312] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_312] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_312] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:297) ~[server.jar:] ... 14 more

Can you send your config.yml?

Zatrex12345 commented 1 year ago

ok

Zatrex12345 commented 1 year ago

Developer option, set to false if GoodestEnglish didn't tell you to set to true

debug: false

Should arena and kit auto save after you make a changes?

If auto save is disabled, you have to use command '/kit save ' or '/arena save ' to save them manually

NOTE: Auto save will save each process after you made a changes into arena and kit, and changes are final (which means it cannot be reverted) if you set this to true

arena-kit-auto-save: false

Should Eden disable auto saving world?

Note that you have to manually do /save-all if you want to save the world if this option is set to true

Disable auto saving world will not save the world after you do /stop

disable-save-world: true

MongoDB login information

mongo:

This option should be ALWAYS true. Unless you want to test specific stuff without modifying the database

If it is disabled, player stats will not be loaded and saved

enabled: true uri-mode: true normal: host: 127.0.0.1 port: 27017 auth: enabled: false username: '' password: '' uri: database: mymongo connection-string: this is mongo

Built-in tablist editor

Note that some user might experience tablist column incorrectly format. If that happens, please do not use this tablist function

fancy-tablist:

Toggle if the fancy tablist should be enabled or not

enabled: true

How should each tab element shown

This supports PlaceholderAPI, so if you wish to show player prefix, you can do it!

format: "&a{player-name}"

The ticks of how often the tablist will be updated

Default is 20, which is 1 second. 1 tick is equal to 0.05 second

update-ticks: 20 nametag:

Toggle if the plugin should modify the nametag color or not

enabled: true

Nametag prefix

prefix:

What prefix should the nametag display when the player is in lobby?

lobby: "&9"
## What prefix should the nametag display when the player is a spectator?
spectator: "&7"
## What prefix should the nametag display when the player is a teammate?
teammate: "&a"
## What prefix should the nametag display when the player is an opponent?
opponent: "&c"
## If it doesn't match any of the above, what prefix should the nametag display?
## One of the scenario is a spectator tries to view match players. Those match players nametag will display as the follow prefix
other: "&e"

party:

When player creates a party, what is the default size?

default-max-size: 30 lobby:

Should player allow to see other players?

display-players: true queue:

How many wins should a player have to have access to queue ranked matches?

ranked-required-wins: 10 match:

This option will give a 'Play Again' item to match players when a match is ended, like Minemen Club

allow-requeue: true

When player is outside the cuboid (which uses arena min/max), should player receive a instant death damage?

outside-cuboid-instant-death: true

Should Eden remove cactus and sugar cane's physics?

If true, when player places a block near cactus and sugar cane, cactus won't be destroyed

remove-cactus-sugar-cane-physics: true death-lightning: true death-animation: true

When a player dies, should Eden teleport the player 2 blocks up?

tp-2-blocks-up-when-die: true

When player dies and if the kit allows respawn, should Eden teleport the player to their spawn?

respawn-teleport-to-spawn-when-die: true

Command when the player wins. Only trigger when the player is playing unranked/ranked matches and not a custom duel match.

You can use {player} as the winner's name placeholder

Example:

win-commands:

- "say {player} hello you win!"

- "pay {player} 100"

win-commands: []

The saturation for all players when match starts

start-saturation: 15

Golden apple settings for instant gapple in kit game rules

golden-apple:

When player consume a golden apple, should the system gives normal effects to the player (which contains instantly regenerate to full health, saturation and absorption hearts), or just regenerate to full health?

## If false, then system will only set the player health to full, no effects are given
instant-gapple-effects: true
## Should Eden gives absorption hearts everytime when a player consume a golden apple?
## Disable this if you want Hypixel styled golden apple in bridge
give-absorption-hearts-everytime: false

Snow related options - Only works in spleef kit game rules

snow:

Chance of getting snowball when break a snow block (In 0 - 100)

snowball-drop-chance: 50
## When you break the snow block, how many snowball should system give you?
snowball-drop-amount: 4

Titles - Which type of title should be shown?

title:

Shows title when someone scores a point?

score: true
## Shows title when the match has a result?
end: true

The ticks which represents between from match ends to send the player to lobby and reset the arena

20 ticks is 1 second, so if 100 ticks then it will be 5 seconds

Default is 100, and is recommended. Change this value with caution

end-duration: 100

What block should player allow to break when kit game rule has build enabled?

Do not let player break blocks which contain tile entities (For example: chest, sign)

allow-breaking-blocks:

HierarchyMan commented 1 year ago

U forgot to remove ur mongodb details 💀

Zatrex12345 commented 1 year ago

i removed it

GoodestEnglish commented 1 year ago

https://drive.google.com/file/d/1fSzljrVbm2jEiCx121aKyOc9JE1p4ESq/view?usp=sharing

Try this version.

Zatrex12345 commented 1 year ago

ok

Zatrex12345 commented 1 year ago

i need to update files?

GoodestEnglish commented 1 year ago

No need :)

i need to update files?

Zatrex12345 commented 1 year ago

ok

Zatrex12345 commented 1 year ago

yes the bug fixed

HierarchyMan commented 1 year ago

https://drive.google.com/file/d/1fSzljrVbm2jEiCx121aKyOc9JE1p4ESq/view?usp=sharing

Try this version.

U put this in the latest release right?

GoodestEnglish commented 1 year ago

https://drive.google.com/file/d/1fSzljrVbm2jEiCx121aKyOc9JE1p4ESq/view?usp=sharing Try this version.

U put this in the latest release right?

Yup. I edited 1.1.23 version jar file.