Giter Site home page Giter Site logo

hungergames's Introduction

๐Ÿ‘‹ Hi, Iโ€™m Joseph (J.T.) McQuigg I am a 21 year old Software Developer and just graduated from Rutgers University with a Bachelor of Arts in Computer Science

I did a CO-OP as a Software Enigneer at Bayer in 2023

Some of my Personal Projects include Pixelmon Generations, HungerGames, BedWars1058, Minecraft Forge, NeoForge, Oh The Biomes You'll Go and many more contributions across the Minecraft and Java Software community.

How to reach me Discord: JT122406#6777

My Stats:

Anurag's GitHub stats

My top Languages:

Top Langs

Streak Stats:

GitHub Streak

My Organizations: Generations: (https://github.com/GenerationsMod) Mythical Network: (https://github.com/PokeNinjas) Potion Studios: (https://github.com/Potion-Studios)

hungergames's People

Contributors

ananyevmv avatar apionxd avatar datatags avatar jt122406 avatar sachk avatar sehrgutercode avatar shanebeee avatar superspeeder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hungergames's Issues

Allow config setting for defining normal chest containers

Is your feature request related to a problem? Please describe:
In my map, I used a lot barrels due to how they look and not needing a air block above. However, due to the quantity I don't want it to be treated as a bonus chest.

Describe the solution you'd like:
Would it be possible to customize what blocks could count as normal chests? Currently there is no option in the config but there is one for special bonus chests, which may make it easier to implement.

Describe alternatives you've considered:
I have considered making all the special loot the same as the normal loot, but it wouldn't allow for me to have special loot, which is a really cool feature I want to use.

Additional context:
None really! Just ask me if you have any questions!

[BUG] /hg wand does not give any item

Describe the bug
the command /hg wand does not give an item, just says "disabled" or "enabled"
I tried with another item, but when I try to create the arena it tells me I have to make a selection first.
I tried with a wooden axe, but that just selects a worldedit region that HungerGames does not recognize.

To Reproduce
Install the plugin, run the command

Expected behavior
It should give me an item, according to the wiki

Screenshots/Errors

Version Info:

  • Plugin Version: 5.2.6
  • Server Version/Platform Paper 1.20.4

Players need variables and permissions to join a given arena

Is your feature request related to a problem? Please describe:

not

Describe the solution you'd like:

Add a feature that requires you to specify permissions or specify variables to join an arena

Describe alternatives you've considered:

not

Additional context:

not

[BUG&suggestion]

Describe the bug
1.use /hg spectate player can't fly
2.If you log out during a match, you will still be in the arena map when you log back in

To Reproduce

/hg spectate (player can't fly)

2./hg join [map]
Sign out
login
The player is not in game mode, still has their items in the backpack, and remains in the game arena.

Expected behavior
1.player can fly

2.The player should be sent back to the lobby or the location where they joined the game.

Screenshots/Errors

Version Info:
Paper version git-Paper-279 (MC: 1.19.2) (Implementing API version 1.19.2-R0.1-SNAPSHOT) (Git: a7df847)
HungerGames-5.2.2

Additional context

[suggestion]
1.Additionally, the player's backpack should be emptied upon death before giving them a compass. It would also be helpful to provide a bed for the player to exit the game.

2.set command reward can reward all player
I want player can get participation award.
Could you please add this feature? THX!

[BUG]

Keeps spamming in my console:
31.07 16:10:47 [Server] ERROR Unhandled exception number 4096 occured in onPacketSending(PacketEvent) for eco
31.07 16:10:47 [Server] INFO java.lang.NoSuchMethodError: 'com.comphenix.protocol.reflect.StructureModifier com.comphenix.protocol.reflect.StructureModifier.modify(int, java.util.function.UnaryOperator)'
31.07 16:10:47 [Server] INFO at com.willfp.eco.internal.spigot.display.PacketSetSlot.onSend(PacketSetSlot.kt:20) ~[eco-6.38.2-all.jar:?]
31.07 16:10:47 [Server] INFO at com.willfp.eco.core.AbstractPacketAdapter.onPacketSending(AbstractPacketAdapter.java:119) ~[eco-6.38.2-all.jar:?]
31.07 16:10:47 [Server] INFO at com.comphenix.protocol.injector.SortedPacketListenerList.invokeSendingListener(SortedPacketListenerList.java:195) ~[ProtocolLib.jar:?]
31.07 16:10:47 [Server] INFO at com.comphenix.protocol.injector.SortedPacketListenerList.invokePacketSending(SortedPacketListenerList.java:149) ~[ProtocolLib.jar:?]
31.07 16:10:47 [Server] INFO at com.comphenix.protocol.injector.PacketFilterManager.handlePacket(PacketFilterManager.java:535) ~[ProtocolLib.jar:?]
31.07 16:10:47 [Server] INFO at com.comphenix.protocol.injector.PacketFilterManager.invokePacketSending(PacketFilterManager.java:516) ~[ProtocolLib.jar:?]
31.07 16:10:47 [Server] INFO at com.comphenix.protocol.injector.netty.ProtocolInjector.packetQueued(ProtocolInjector.java:346) ~[ProtocolLib.jar:?]
31.07 16:10:47 [Server] INFO at com.comphenix.protocol.injector.netty.ProtocolInjector.onPacketSending(ProtocolInjector.java:308) ~[ProtocolLib.jar:?]
31.07 16:10:47 [Server] INFO at com.comphenix.protocol.injector.netty.ChannelInjector.processSending(ChannelInjector.java:436) ~[ProtocolLib.jar:?]
31.07 16:10:47 [Server] INFO at com.comphenix.protocol.injector.netty.ChannelInjector.access$800(ChannelInjector.java:72) ~[ProtocolLib.jar:?]
31.07 16:10:47 [Server] INFO at com.comphenix.protocol.injector.netty.ChannelInjector$3.handleScheduled(ChannelInjector.java:376) ~[ProtocolLib.jar:?]
31.07 16:10:47 [Server] INFO at com.comphenix.protocol.injector.netty.ChannelInjector$3.onMessageScheduled(ChannelInjector.java:346) ~[ProtocolLib.jar:?]
31.07 16:10:47 [Server] INFO at com.comphenix.protocol.injector.netty.ChannelProxy$2.schedulingRunnable(ChannelProxy.java:127) ~[ProtocolLib.jar:?]
31.07 16:10:47 [Server] INFO at com.comphenix.protocol.injector.netty.EventLoopProxy.execute(EventLoopProxy.java:95) ~[ProtocolLib.jar:?]
31.07 16:10:47 [Server] INFO at net.minecraft.network.Connection.writePacket(Connection.java:435) ~[?:?]
31.07 16:10:47 [Server] INFO at net.minecraft.network.Connection.send(Connection.java:382) ~[?:?]
31.07 16:10:47 [Server] INFO at net.minecraft.server.network.ServerGamePacketListenerImpl.send(ServerGamePacketListenerImpl.java:2123) ~[?:?]
31.07 16:10:47 [Server] INFO at net.minecraft.server.network.ServerGamePacketListenerImpl.send(ServerGamePacketListenerImpl.java:2109) ~[?:?]
31.07 16:10:47 [Server] INFO at org.bukkit.craftbukkit.v1_18_R2.inventory.CraftInventoryPlayer.setItem(CraftInventoryPlayer.java:113) ~[purpur-1.18.2.jar:git-Purpur-1632]
31.07 16:10:47 [Server] INFO at org.bukkit.craftbukkit.v1_18_R2.inventory.CraftInventory.clear(CraftInventory.java:442) ~[purpur-1.18.2.jar:git-Purpur-1632]
31.07 16:10:47 [Server] INFO at org.bukkit.craftbukkit.v1_18_R2.inventory.CraftInventory.clear(CraftInventory.java:448) ~[purpur-1.18.2.jar:git-Purpur-1632]
31.07 16:10:47 [Server] INFO at tk.shanebee.hg.util.Util.clearInv(Util.java:226) ~[HungerGames-5.1.1.jar:?]
31.07 16:10:47 [Server] INFO at tk.shanebee.hg.data.PlayerData.(PlayerData.java:61) ~[HungerGames-5.1.1.jar:?]
31.07 16:10:47 [Server] INFO at tk.shanebee.hg.game.GamePlayerData.lambda$join$1(GamePlayerData.java:290) ~[HungerGames-5.1.1.jar:?]
31.07 16:10:47 [Server] INFO at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718) ~[?:?]
31.07 16:10:47 [Server] INFO at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
31.07 16:10:47 [Server] INFO at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2147) ~[?:?]
31.07 16:10:47 [Server] INFO at org.bukkit.craftbukkit.v1_18_R2.entity.CraftEntity.lambda$teleportAsync$0(CraftEntity.java:547) ~[purpur-1.18.2.jar:git-Purpur-1632]
31.07 16:10:47 [Server] INFO at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.18.2.jar:git-Purpur-1632]
31.07 16:10:47 [Server] INFO at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
31.07 16:10:47 [Server] INFO at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
31.07 16:10:47 [Server] INFO at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1427) ~[purpur-1.18.2.jar:git-Purpur-1632]
31.07 16:10:47 [Server] INFO at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:188) ~[purpur-1.18.2.jar:git-Purpur-1632]
31.07 16:10:47 [Server] INFO at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
31.07 16:10:47 [Server] INFO at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1404) ~[purpur-1.18.2.jar:git-Purpur-1632]
31.07 16:10:47 [Server] INFO at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1397) ~[purpur-1.18.2.jar:git-Purpur-1632]
31.07 16:10:47 [Server] INFO at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:114) ~[?:?]
31.07 16:10:47 [Server] INFO at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1531) ~[purpur-1.18.2.jar:git-Purpur-1632]
31.07 16:10:47 [Server] INFO at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1247) ~[purpur-1.18.2.jar:git-Purpur-1632]
31.07 16:10:47 [Server] INFO at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:321) ~[purpur-1.18.2.jar:git-Purpur-1632]

[Request] Default kit on join

Have a player automatically get a default kit upon joining the arena. A lot of players will join the arena, and not equip a kit. So when the arena starts, they are at a huge disadvantage. Having a default kit will fix this.

[BUG] Players can move before game starts

Describe the bug

When the players are waiting in the arena spamming jump and w allows for movement

To Reproduce

Join a game and spam w and spacebar while the game counts down

Expected behavior

Player should be unable to move

Version Info:

  • Plugin Version: 5.2.3
  • Server Version/Platform Paper 1.19.3

[BUG]off-hands items were swallowed

Describe the bug

When the player holds a item in his off-hand, the items that leave the left hand after joining the Hunger Games will be vanish

To Reproduce

Put the item in your off-hand join in game and leave the game or return to the world after the game

Version Info:

  • Plugin Version:
  • HungerGames-5.2.6
  • Server Version/Platform
  • PurPur 1.20.4

Additional context

paper-1.19

The champion sometimes has no reward items, if entering the match with a prop, the prop will disappear at the end of the match, and full players can not automatically start the match.
paper-1.19-experimental-6.jar HungerGames-5.0.5

[BUG] Please update default config for rarity of items and define the term 'cost'

Describe the bug
Hello, now 'x: some value' does not work any more for rarity

Example in logs:
[20:51:43] [Server thread/INFO]: [HungerGames] Item definition LEATHER_LEGGINGS 1 x:2 doesn't contain a cost or a rarity! Defaulting to 1...

Config:
- LEATHER_LEGGINGS 1 x:2

To fix the problem, I had to download the repository and understand the code.
Now it is not 'x:'. It is 'rarity:' now

Also you should define the term 'price'. I have not yet understood the meaning of this parameter.

Pressure Plate functionality

Is your feature request related to a problem? Please describe:

you step on a pressure plate to teleport to the game, kinda it would be nice if the sign option worked, or if there was some alternatives for people

Describe the solution you'd like:

something like /hg pressure_plate ( name ), then when you step on the pressure plate, you get teleported to the game

Describe alternatives you've considered:

a button, push the button to go to the game

Additional context:

[BUG] NBT strings don't work.

Describe the bug

Tried adding some custom items using CustomDataModel and NBT strings, yet did not work,

To Reproduce

  • DIAMOND_SWORD 1 data:{Unbreakable:1b,display:{Name:'{"text":"Bob's_Sword"}'},Damage:500}
    Add this from the wiki to the chest loot config, it will be a normal sword.

Expected behavior

Sword with enchantments and name.

Screenshots/Errors

Version Info:

  • Plugin Version: 5.1.1
  • Server Version/Platform Paper 1.19.2

[BUG] Game occasionally skips timer and joining game can glitch

Describe the bug

  • I have noticed while testing this plugin for a minigame server that there are issues joining the games, sometimes when you click a sign to join you are teleported to a spawn and then back to being in front of the sign (While still being counted as in the game)

  • A second joining issue is that when the first person joins a game, and the minimum player limit is two the game may sometimes start with just a single player and no countdown.

To Reproduce

Create an arena with a minimum of two players and play through several rounds, the bugs should present themselves.

Version Info:

  • Plugin Version: 5.2.3
  • Server Version/Platform Paper 1.19.3

[BUG] Doesnt start

I can't find the version I need, can you provide a link?

[19:31:58 ERROR]: Could not load 'plugins\HungerGames-5.2.4.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: tk/shanebee/hg/HG has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:157) ~[patched_1.16.5.jar:git-Purpur-1171]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:414) ~[patched_1.16.5.jar:git-Purpur-1171]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:322) ~[patched_1.16.5.jar:git-Purpur-1171]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:393) ~[patched_1.16.5.jar:git-Purpur-1171]
at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:279) ~[patched_1.16.5.jar:git-Purpur-1171]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1074) ~[patched_1.16.5.jar:git-Purpur-1171]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:293) ~[patched_1.16.5.jar:git-Purpur-1171]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_371]
Caused by: java.lang.UnsupportedClassVersionError: tk/shanebee/hg/HG has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_371]
at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:1.8.0_371]
at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:1.8.0_371]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:201) ~[patched_1.16.5.jar:git-Purpur-1171]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_371]
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:119) ~[patched_1.16.5.jar:git-Purpur-1171]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:114) ~[patched_1.16.5.jar:git-Purpur-1171]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_371]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_371]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_371]
at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:82) ~[patched_1.16.5.jar:git-Purpur-1171]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:153) ~[patched_1.16.5.jar:git-Purpur-1171]
... 7 more

[BUG] Game does not start

I experienced some bugs after setup and testing.

  1. The game will never start. It shows 30 sec that will never end.
  2. After leaving the arena (winning/dieing) the offhand item is gone.
  3. It spams a console error.
    image

I happens after a clean installation.

Version 5.2.3
Paper 1.19.3

[BUG] arena.yml commands text processing does not support commands with colons in them

Describe the bug
When a command configured in the arena.yml file to run on events in the game contains a colon, only the part before the first colon after the event type is used.

To Reproduce
Place a command in the form of start:give <player> minecraft:stone 32 in the arena.yml commands section for an arena.
When the game starts, the command triggers an error stating that minecraft is not a valid item.

Expected behavior
The command give <player> minecraft:stone 32 is run.

Version Info:

  • Plugin Version: 5.0.2 (Have confirmed this is not fixed in 5.0.3)
  • Server Version/Platform Paper 1.18.2

Additional context
Not necessarily additional context, but sorry I forgot to submit this prior to submitting a pull request with the fix (#4). The fix was to limit the split which obtains the command to only 2 output values, resulting in the full command string.

[BUG] Too many blocks are rolled back

Describe the bug
Blocks that don't need to be rolled back are added to the rollback list

To Reproduce
It happens by default, no special steps are needed to reproduce. I discovered it by adding some logging statements, specifically in Rollback.run() and the event listeners in game listener

Expected behavior
Blocks shouldn't be rolled back unless they change

Screenshots/Errors

Version Info:

  • Plugin Version: 5.2.1
  • Server Version/Platform Paper 1.19.3

Additional context
I fixed this problem by completely removing the BlockPhysicsUpdateEvent listener, and instead used the EntityChangeBlock listener to check if the entity changing a block was a falling block. This event only triggers when a falling block is placed and when it lands, but thats enough to store the block states of the initial start and end positions. I will upload this code soonish to my fork, and submit a PR, but it will come with some other potentially unwanted features that I have implemented for personal use.

[BUG]

Describe the bug
When using the nether start to start games earlier than the 25 second timer (with more than 1 player) both health and hunger changes from full, down to 2 hearts and 2 bars.

To Reproduce
Load into a HungerGames Map and start the game earlier than the default count down, with multiple players.

Expected behavior
Hunger and Health drops from full to 2 bars on each.

Screenshots/Errors
No errors in the console or on screen.

Version Info:

  • Plugin Version: 5.2.0
  • Server Version/Platform 1.19.2 spigot -- 1.12.2

Additional context
If you don't skip the countdown, your health and hunger don't change and the bug doesn't seem to happen.

Code left in server even after removal of the plugin???

Describe the bug

Even after you remove the jar some things still leanger
To Reproduce

Delete Hunger Games

Expected behavior

It does not linger after removal of the plugin

Screenshots/Errors

https://timings.aikar.co/dev/?id=27e5e523e80c47fab6784fb8aeba8b55

https://spark.lucko.me/jmzfwrs3mY

Hunger Games was removed, but it is still there in the server. I was told " It appears that it may use Scoreboards or other built-in Minecraft features, which may be left in the world/worlds upon removal, unfortunately. "
Version Info: 1.19.2

  • Plugin Version: 5.2.3
  • Server Version/Platform

Additional context

[BUG]

Describe the bug
Logging out while spectating, then logging back in, reveals you for other players. Then when the game is finished, you're not teleported out of the arena.

To Reproduce
Start a match.
Die
Spectate the game.
Log out
Log back in.

Expected behavior
Relogging while in spectate should return you back to spectate state.

Version Info:

  • Plugin Version: 5.2.6
  • Server Version/Platform: Pufferfish version git-Pufferfish-21 (MC: 1.20.1)

A way to make bonus chests chance-based and not determined

Is your feature request related to a problem? Please describe:

I don't like that my HungerGames map always has the bonus chests in the exact same location each game. This just causes the experienced players to all go to the same places and the newer players to just get killed by people with better gear.


Describe the solution you'd like:

There should be a config option that just lets you set the percentage of normal chests that are bonus chests. I.e. If it is set at 0.05, then a random 5% of normal chests become bonus chests. This way, every player has an equal amount of chance of finding bonus chests. This would cause the game to be more fair to newer players and just more fun overall since no one knows exactly where to get the best loot.


Describe alternatives you've considered:

I like the idea of putting specific bonus chests around the map. Like if the player can get past a certain parkour, then they are sure to get bonus loot. However, this makes the gameplay pretty formulaic.

[BUG] left hand item disappears and drop rate bug

The 1.20 version of the item setting is different from the actual game. Items with lower drop rates also appear much more often than items with higher drop rates. And if enter the game with an item in left hand, the item in left hand disappears.

[BUG] Kit items are cleared on match start

Describe the bug
Players' kit items are cleared when the match starts

To Reproduce

  1. Join a match
  2. Pick a kit
  3. Wait for the match to start
  4. See all your items disappear

Expected behavior
Players to keep their kit items

Screenshots/Errors
No errors, and I think it's pretty self-explanatory

Version Info:

  • Plugin Version: 5.0.1
  • Server Version/Platform Paper 1.18.2: This server is running Paper version git-Paper-324 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) (Git: 8c9d98e)

Additional context
Not that I know of

[BUG] clicking sign does not work if you are on bedrock

Describe the bug

The sign does not work when you click on it on bedrock

To Reproduce

go to bedrock and click on the sign

Expected behavior

you should be able to click on the sign and join

Screenshots/Errors

basically, a screenshot of the signs

Version Info:

  • Plugin Version: 5.2.0
  • Server Version/Platform paper 1.19.2

Additional context

[BUG]

Items settings in 1.20 version are different from the actual game. Even items with a lower drop rate appear much more often than items with a higher drop rate. And when I enter the game, there is a bug where the item in my left hand disappears when I hold

[BUG] Could not pass event InventoryCloseEvent

Describe the bug
Collision with other minigames plugins (any minigame using chest/ex. SkyWars X, KitBattle, Wizards etc.)

To Reproduce

  1. Play another game ex. SkyWars
  2. Errors in the console

Screenshots/Errors
[Server thread/ERROR]: Could not pass event InventoryCloseEvent to HungerGames v5.2.3
java.lang.NullPointerException: Cannot invoke "tk.shanebee.hg.game.Game.getChestDropManager()" because "game" is null
at tk.shanebee.hg.listeners.ChestDropListener.onInventoryClose(ChestDropListener.java:35) ~[HungerGames-5.2.3.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor272.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[Fusion-API-1.19.3-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[Fusion-API-1.19.3-R0.1-SNAPSHOT.jar:git-Fusion-"754f61a"]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[Fusion-API-1.19.3-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617) ~[Fusion-API-1.19.3-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_19_R2.event.CraftEventFactory.handleInventoryCloseEvent(CraftEventFactory.java:1563) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClose(ServerGamePacketListenerImpl.java:3048) ~[?:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClose(ServerGamePacketListenerImpl.java:3041) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundContainerClosePacket.handle(ServerboundContainerClosePacket.java:15) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundContainerClosePacket.a(ServerboundContainerClosePacket.java:10) ~[?:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:51) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1368) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1345) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1338) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1316) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1204) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at java.lang.Thread.run(Thread.java:1589) ~[?:?]

Version Info:

  • Plugin Version: 5.2.3
  • Server Version/Platform: Fusion 1.19.3 (Paper fork), Java 17

[BUG] Per arena items arent overriding items file

Describe the bug
You should be able to use different loot tables per arena, but instead it seems to be merging all possible loot tables into one and using that.

To Reproduce
I added
items:
- DIAMOND_SWORD 1
- IRON_HOE 1
- COOKED_CHICKEN 3
bonus:
- GRASS_BLOCK 1
- STONE 1
- DIRT 1
to the arena file in the correct arena but they are added to the regular loot table and can be found in both maps.

Expected behavior
You should be able to use different loot tables per arena

Version Info:

  • Plugin Version:
  • Server Version/Platform

Additional context
Per arena kits work fine. Also merges loot tables from other arenas, not just from item file.

[BUG] I saw this error code in the console

Describe the bug

an error in the logs

To Reproduce

hard to say

Expected behavior

hard to say

Screenshots/Errors

none

Version Info:

  • Plugin Version: newest 5.2.0
  • Server Version/Platform spigot 1.19.2

Additional context

none

here is the error log

[05.11 20:36:15] [Server] [INFO] There are 4 of a max of 10000 players online: .nucklear_reaper, nucklear, Sam1455, NightmareFafnir
[05.11 20:36:40] [Server] [INFO] [@: Added 1 to [money] for 4 entities]
[05.11 20:36:57] [Server] [ERROR] Could not pass event BlockPhysicsEvent to HungerGames v5.2.0
[05.11 20:36:57] [Server] java.lang.NullPointerExceptionCannot invoke "org.bukkit.block.BlockFace.getModX()" because "face" is null
[05.11 20:36:57] [Server] at org.bukkit.craftbukkit.v1_19_R1.block.CraftBlock.getRelative(CraftBlock.java:265) ~[paper-1.19.2.jar:git-Paper-258]
[05.11 20:36:57] [Server] at org.bukkit.craftbukkit.v1_19_R1.block.CraftBlock.getRelative(CraftBlock.java:260) ~[paper-1.19.2.jar:git-Paper-258]
[05.11 20:36:57] [Server] at tk.shanebee.hg.util.Util.isAttached(Util.java:291) ~[HungerGames-5.2.(1).jar:?]
[05.11 20:36:57] [Server] at tk.shanebee.hg.game.GameBlockData.recordBlockBreak(GameBlockData.java:140) ~[HungerGames-5.2.(1).jar:?]
[05.11 20:36:57] [Server] at tk.shanebee.hg.listeners.GameListener.onBlockFall(GameListener.java:625) ~[HungerGames-5.2.(1).jar:?]
[05.11 20:36:57] [Server] at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:37) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
[05.11 20:36:57] [Server] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:git-Paper-258]
[05.11 20:36:57] [Server] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
[05.11 20:36:57] [Server] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:670) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
[05.11 20:36:57] [Server] at org.bukkit.event.Event.callEvent(Event.java:45) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
[05.11 20:36:57] [Server] at net.minecraft.world.level.redstone.CollectingNeighborUpdater$MultiNeighborUpdate.runNext(CollectingNeighborUpdater.java:132) ~[?:?]
[05.11 20:36:57] [Server] at net.minecraft.world.level.redstone.CollectingNeighborUpdater.runUpdates(CollectingNeighborUpdater.java:79) ~[paper-1.19.2.jar:git-Paper-258]
[05.11 20:36:57] [Server] at net.minecraft.world.level.redstone.CollectingNeighborUpdater.addAndRun(CollectingNeighborUpdater.java:63) ~[paper-1.19.2.jar:git-Paper-258]
[05.11 20:36:57] [Server] at net.minecraft.world.level.redstone.CollectingNeighborUpdater.shapeUpdate(CollectingNeighborUpdater.java:30) ~[paper-1.19.2.jar:git-Paper-258]
[05.11 20:36:57] [Server] at net.minecraft.world.level.Level.neighborShapeChanged(Level.java:742) ~[?:?]
[05.11 20:36:57] [Server] at net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.updateNeighbourShapes(BlockBehaviour.java:992) ~[?:?]
[05.11 20:36:57] [Server] at net.minecraft.world.level.Level.notifyAndUpdatePhysics(Level.java:658) ~[?:?]
[05.11 20:36:57] [Server] at net.minecraft.world.level.Level.setBlock(Level.java:604) ~[?:?]
[05.11 20:36:57] [Server] at net.minecraft.world.level.Level.setBlock(Level.java:513) ~[?:?]
[05.11 20:36:57] [Server] at net.minecraft.world.level.block.VineBlock.randomTick(VineBlock.java:225) ~[?:?]
[05.11 20:36:57] [Server] at net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.randomTick(BlockBehaviour.java:1018) ~[?:?]
[05.11 20:36:57] [Server] at net.minecraft.server.level.ServerLevel.tickChunk(ServerLevel.java:897) ~[?:?]
[05.11 20:36:57] [Server] at net.minecraft.server.level.ServerChunkCache.tickChunks(ServerChunkCache.java:768) ~[?:?]
[05.11 20:36:57] [Server] at net.minecraft.server.level.ServerChunkCache.tick(ServerChunkCache.java:648) ~[?:?]
[05.11 20:36:57] [Server] at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:685) ~[?:?]
[05.11 20:36:57] [Server] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1535) ~[paper-1.19.2.jar:git-Paper-258]
[05.11 20:36:57] [Server] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446) ~[paper-1.19.2.jar:git-Paper-258]
[05.11 20:36:57] [Server] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1397) ~[paper-1.19.2.jar:git-Paper-258]
[05.11 20:36:57] [Server] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1173) ~[paper-1.19.2.jar:git-Paper-258]
[05.11 20:36:57] [Server] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-258]
[05.11 20:36:57] [Server] at java.lang.Thread.run(Thread.java:833) ~[?:?]
[05.11 20:37:16] [Server] [INFO] There are 4 of a max of 10000 players online: .nucklear_reaper, nucklear, Sam1455, NightmareFafnir
[05.11 20:37:18] [Server] [INFO] [@: Added 1 to [money] for 4 entities]

[BUG] Task #156

Describe the bug
After entering the arena there are errors in the console, the arena does not start and players can walk around and break blocks

To Reproduce

  1. Create an arena
    2 Play a few times with friends
  2. Errors in the console

Screenshots/Errors
[Server thread/WARN]: [HungerGames] Task #156 for HungerGames v5.2.3 generated an exception
java.lang.IllegalArgumentException: Health must be between 0 and 20.0, but was 23.0. (attribute base value: 20.0, player: TheMikol)
at org.bukkit.craftbukkit.v1_19_R2.entity.CraftLivingEntity.setHealth(CraftLivingEntity.java:112) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at tk.shanebee.hg.tasks.StartingTask.run(StartingTask.java:54) ~[HungerGames-5.2.2.jar:?]
at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1500) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:497) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1424) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1194) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321) ~[fusion-1.19.3.jar:git-Fusion-"754f61a"]
at java.lang.Thread.run(Thread.java:1589) ~[?:?]

Version Info:

  • Plugin Version: 5.2.3
  • Server Version/Platform Fusion 1.19.3 (Paper fork), Java 17

Additional context
The problem also occurs when a player enters with half a heart and not a full

Discord Server to discuss this plugin in.

Is your feature request related to a problem? Please describe:

This plugin is a widely used plugin. It deserves a place for everyone who uses it to go to to seek support with it. When I have an issue with this plugin, my only option is to make an issue on this github or talk about it on spigot.org and neither of those are as quick and easy as a discord server.

Victory Commands on Game Win/End aren't working. [BUG]

When my game ends none of the commands (Such as messages [and] or commands aren't working) There are no errors or commands in the console, so it appears that it isn't working at all.
This is obviously a huge issue as I have no way to reward players for winning.

To Reproduce
Server version: 1.20.1
Client Version 1.19.3
Set money reward to 0 and enter any command in the commands section in the Config File.

image

Version Info:

  • Plugin Version: 5.2.5
  • Server Version/Platform Paper 1.20.1

Giant error report - newest version 5.2.3 .[BUG]

Describe the bug

[18.02 19:59:38] [Server] [ERROR] Could not pass event InventoryCloseEvent to HungerGames v5.2.3
[18.02 19:59:38] [Server] java.lang.NullPointerExceptionCannot invoke "tk.shanebee.hg.game.Game.getChestDropManager()" because "game" is null
[18.02 19:59:38] [Server] at tk.shanebee.hg.listeners.ChestDropListener.onInventoryClose(ChestDropListener.java:35) ~[HungerGames-5.2.3.jar:?]
[18.02 19:59:38] [Server] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor216.execute(Unknown Source) ~[?:?]
[18.02 19:59:38] [Server] at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
[18.02 19:59:38] [Server] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:git-Paper-307]
[18.02 19:59:38] [Server] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
[18.02 19:59:38] [Server] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:670) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
[18.02 19:59:38] [Server] at org.bukkit.craftbukkit.v1_19_R1.event.CraftEventFactory.handleInventoryCloseEvent(CraftEventFactory.java:1534) ~[paper-1.19.2.jar:git-Paper-307]
[18.02 19:59:38] [Server] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClose(ServerGamePacketListenerImpl.java:3071) ~[?:?]
[18.02 19:59:38] [Server] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClose(ServerGamePacketListenerImpl.java:3064) ~[?:?]
[18.02 19:59:38] [Server] at net.minecraft.network.protocol.game.ServerboundContainerClosePacket.handle(ServerboundContainerClosePacket.java:15) ~[?:?]
[18.02 19:59:38] [Server] at net.minecraft.network.protocol.game.ServerboundContainerClosePacket.a(ServerboundContainerClosePacket.java:10) ~[?:?]
[18.02 19:59:38] [Server] at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:51) ~[?:?]
[18.02 19:59:38] [Server] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.19.2.jar:git-Paper-307]
[18.02 19:59:38] [Server] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
[18.02 19:59:38] [Server] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
[18.02 19:59:38] [Server] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1341) ~[paper-1.19.2.jar:git-Paper-307]
[18.02 19:59:38] [Server] at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:185) ~[paper-1.19.2.jar:git-Paper-307]
[18.02 19:59:38] [Server] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
[18.02 19:59:38] [Server] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1318) ~[paper-1.19.2.jar:git-Paper-307]
[18.02 19:59:38] [Server] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1311) ~[paper-1.19.2.jar:git-Paper-307]
[18.02 19:59:38] [Server] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
[18.02 19:59:38] [Server] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1289) ~[paper-1.19.2.jar:git-Paper-307]
[18.02 19:59:38] [Server] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1177) ~[paper-1.19.2.jar:git-Paper-307]
[18.02 19:59:38] [Server] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-307]
[18.02 19:59:38] [Server] at java.lang.Thread.run(Thread.java:833) ~[?:?]

To Reproduce

No idea

Expected behavior

no errors?

Screenshots/Errors

Version Info:

  • Plugin Version: 5.2.3
  • Server Version/Platform paper 1.19.2

Additional context

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.