Code Monkey home page Code Monkey logo

missilewars's People

Contributors

daniel-naegele avatar redstonefuture avatar xaver106 avatar

Stargazers

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

Watchers

 avatar  avatar

missilewars's Issues

Weird fireball move

Describe the bug
A clear and concise description of what the bug is.

I updated the servers to 1.20.2 and the fireballs started behaving strangely. They fly to the sides and destroy the rockets at a minimum, and I think they explode sooner

To Reproduce
Steps to reproduce the behavior:

Update the server to 1.20.2
Try how fireball flies

Expected behavior
A clear and concise description of what you expected to happen.

Fireball will work the same as in 1.20.1 and below - it will destroy rockets better and will not fly to the sides

Screenshots
If applicable, add screenshots to help explain your problem.

2023-12-23.15-55-44.mp4

Server (please complete the following information):

  • OS: [e.g. Debian, Windows]
  • Minecraft version [e.g. 1.12, 1.16, 1.17] purpur 1.20.2
  • Java version [e.g. 11, 17]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

I don't know if this is something you can fix, please try to look into it. Thank you

Exception in command: mw restartall

Describe the bug
A clear and concise description of what the bug is.

Unable to reset all games with /mw restartall command

To Reproduce
Steps to reproduce the behavior:

  1. connect to the server
  2. try entering the /mw restartall command
  3. error in chat and console

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

image

Server (please complete the following information):

  • OS: ubuntu 22
  • Minecraft version 1.19.3
  • Java version 17.0.2 OpenJDK
  • Version 4.5.0

Additional context
Add any other context about the problem here.

error: https://pastebin.com/vz5hFMB3

Possible wrong defaults in arena configuration

Describe the bug
A clear and concise description of what the bug is.

You can't move in the arena, when you try to move it spams the chat "You are not allowed to leave the arena".

To Reproduce
Steps to reproduce the behavior:
Start the server with the plugin (tested on latest version - 4.5.2)
Wait for the game to start
Once you're in the arena, try to move

Expected behavior
A clear and concise description of what you expected to happen.

It won't spam me in chat and I'll be able to move

Screenshots
If applicable, add screenshots to help explain your problem.

Server (please complete the following information):
Purpur 1.19.4

Additional context
Add any other context about the problem here.

Version 4.4.2 does not have this problem

Error when starting the plugin

Describe the bug
When the server starts, there are an error and the plugin can't be enabled

To Reproduce
Steps to reproduce the behavior:

  1. Paper 411 (1.17.1)
  2. Java 17J9 (ghcr.io/pterodactyl/yolks:java_17J9)
  3. Start the server

Error:

[18:10:58 INFO]: [MissileWars] Enabling MissileWars v4.5.0
[18:10:58 INFO]: [MW] Boot | This server is running MissileWars v4.5.0 by Butzlabben
[18:10:58 INFO]: [MW] Boot | Loading properties...
[18:10:58 INFO]: [MW] Boot | Registering commands
[18:10:58 INFO]: [MissileWars] [ACF] Enabled Asynchronous Tab Completion Support!
[18:10:59 ERROR]: Error occurred while enabling MissileWars v4.5.0 (Is it up to date?)
java.lang.NoSuchMethodError: org/yaml/snakeyaml/parser/ParserImpl.<init>(Lorg/yaml/snakeyaml/reader/StreamReader;Lorg/yaml/snakeyaml/LoaderOptions;)V (loaded from file:/home/container/cache/patched_1.17.1.jar by jdk.internal.loader.ClassLoaders$AppClassLoader@174dd55d) called from class com.fasterxml.jackson.dataformat.yaml.YAMLParser (loaded from file:/home/container/plugins/MissileWars-4.5.0.jar by PluginClassLoader{plugin=MissileWars v4.5.0, pluginEnabled=true, url=plugins/MissileWars-4.5.0.jar}).
        at com.fasterxml.jackson.dataformat.yaml.YAMLParser.<init>(YAMLParser.java:193) ~[MissileWars-4.5.0.jar:?]
        at com.fasterxml.jackson.dataformat.yaml.YAMLFactory._createParser(YAMLFactory.java:509) ~[MissileWars-4.5.0.jar:?]
        at com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createParser(YAMLFactory.java:413) ~[MissileWars-4.5.0.jar:?]
        at com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createParser(YAMLFactory.java:386) ~[MissileWars-4.5.0.jar:?]
        at com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createParser(YAMLFactory.java:15) ~[MissileWars-4.5.0.jar:?]
        at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3677) ~[MissileWars-4.5.0.jar:?]
        at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3645) ~[MissileWars-4.5.0.jar:?]
        at de.butzlabben.missilewars.util.serialization.Serializer.yamlToJson(Serializer.java:120) ~[MissileWars-4.5.0.jar:?]
        at de.butzlabben.missilewars.util.serialization.Serializer.deserialize(Serializer.java:68) ~[MissileWars-4.5.0.jar:?]
        at de.butzlabben.missilewars.game.Arenas.load(Arenas.java:68) ~[MissileWars-4.5.0.jar:?]
        at de.butzlabben.missilewars.MissileWars.onEnable(MissileWars.java:103) ~[MissileWars-4.5.0.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[patched_1.17.1.jar:git-Paper-411]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.17.1.jar:git-Paper-411]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.17.1.jar:git-Paper-411]
        at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:561) ~[patched_1.17.1.jar:git-Paper-411]
        at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:475) ~[patched_1.17.1.jar:git-Paper-411]
        at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:733) ~[patched_1.17.1.jar:git-Paper-411]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:317) ~[patched_1.17.1.jar:git-Paper-411]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1220) ~[patched_1.17.1.jar:git-Paper-411]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Paper-411]
        at java.lang.Thread.run(Thread.java:857) ~[?:?]
[18:10:59 INFO]: [MissileWars] Disabling MissileWars v4.5.0
[18:10:59 INFO]: [MW] Error | [MySQL] Connection does not exist or was already closed

1.20.1 startup error

Describe the bug
A clear and concise description of what the bug is.

The plugin will not load on version 1.20.1. Error: https://pastebin.com/YCydF068

To Reproduce
Steps to reproduce the behavior:

  1. install plugin on 1.20.1 server
  2. start the server, watch the console
  3. See error

Expected behavior
A clear and concise description of what you expected to happen.

The plugin will be functional

Screenshots
If applicable, add screenshots to help explain your problem.

Server (please complete the following information):

  • OS: [e.g. Debian, Windows]
  • Minecraft version [e.g. 1.12, 1.16, 1.17] 1.20.1
  • Java version [e.g. 11, 17]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Support for ServerListPlus

In the current dev build of ServerListPlus PlaceholderAPI placeholders can be used. Since about 130,000 admins use this plugin for their MOTD, I propose to delete the MotdManager completely and then explain the procedure in the wiki. (We have already implemented the generation of PAPI-supported placeholders.) ServerListPlus has been perfect for MOTD configurations for years and has many good features. If I leave the status configurable and then make it a PAPI placeholder "status", it is super to include in ServerListPlus. Of course, only when the PAPI support is in an official build of SLP in the future.

Our current motd manager is very limited. Outsourcing to ServerListPlus has more advantages for the admins as well.

Events are not executed

If I want to use the events GameStartEvent and GameStopEvent, they are not executed.
My Code:

class MissleWarsListener : Listener {
@eventhandler
fun onStart(event: GameStartEvent) {

}

@EventHandler
fun onStop(event: GameStopEvent) {
    
}

}

Plugin is not Loaded

Describe the bug
When I run the latest version of the plugin on a 1.14.4 server, the plugin doesn't load.

To Reproduce

  1. I starten the MC Server whis the Version 1.14.4
  2. Than I used the Command "/plugins"
  3. And the response was that all plugins (World edit and ViaVerion) were active normally, but Missile Wars was red and inactive.

Expected behavior
That The Plugin Missle Wars is green and active

Screenshots
image

Server (please complete the following information):

  • OS: Debian 11
  • Minecraft version: 1.14.4
  • Java version: 11
  • Version: 4.3.1

Additional context
Sorry for the English. (I´m German)

the spawnpoint lobby does not differentiate the world

Describe the bug
A clear and concise description of what the bug is.

If I use the command /mw setup lobby spawnpoint to set the spawnpoint for the lobby, it doesn't differentiate the worlds. So if I set it in world1 and the main world is world, it ports me to world.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new world via multiverse-core
  2. Create a spawnpoint lobby in the new world
  3. Create a missilewars sign
  4. Try where it teleports you

Expected behavior
A clear and concise description of what you expected to happen.

The name of the world in which the spawnponint is is written into the file. So the function will teleport correctly.

Screenshots
If applicable, add screenshots to help explain your problem.

image

Server (please complete the following information):

  • OS: [e.g. Debian, Windows]
  • Minecraft version 1.20.1
  • Java version [e.g. 11, 17]
  • Version 4.5.3

Additional context
Add any other context about the problem here.

automatic connection to missilewars

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Now if the player approaches the lobby (or whatever it is) it automatically pulls them into the game.

Describe the solution you'd like
A clear and concise description of what you want to happen.

I would imagine the possibility of turning off this automatic connection to the game (feel free to put it in the config as an option to turn it on/off), so that the player has to connect manually with a sign/command.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Plugin Update 1.19.2

Hello, please update this wonderfull plugin to 1.19.2.Thank you in avance

[19:09:30 ERROR]: Error occurred while enabling MissileWars v4.3.1 (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "de.butzlabben.missilewars.game.GameState.ordinal()" because "state" is null
        at de.butzlabben.missilewars.util.MotdManager.updateMOTD(MotdManager.java:44) ~[MissileWars-4.3.1.jar:?]
        at de.butzlabben.missilewars.game.Game.<init>(Game.java:144) ~[MissileWars-4.3.1.jar:?]
        at de.butzlabben.missilewars.game.GameManager.restartGame(GameManager.java:125) ~[MissileWars-4.3.1.jar:?]
        at de.butzlabben.missilewars.game.GameManager.loadGames(GameManager.java:98) ~[MissileWars-4.3.1.jar:?]
        at de.butzlabben.missilewars.game.GameManager.loadGames(GameManager.java:75) ~[MissileWars-4.3.1.jar:?]
        at de.butzlabben.missilewars.MissileWars.onEnable(MissileWars.java:101) ~[MissileWars-4.3.1.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:542) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugin(CraftServer.java:565) ~[paper-1.19.2.jar:git-Paper-299]
        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugins(CraftServer.java:479) ~[paper-1.19.2.jar:git-Paper-299]
        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:636) ~[paper-1.19.2.jar:git-Paper-299]
        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:422) ~[paper-1.19.2.jar:git-Paper-299]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:306) ~[paper-1.19.2.jar:git-Paper-299]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1100) ~[paper-1.19.2.jar:git-Paper-299]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-299]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]



Setup issues

Describe the bug
Hello,
I tried to setup the plugin on my server exactly as per the tutorial on your Wiki.

I'm using FAWE, minecraft 1.20.4, plugin list:

Once I complete the setup and create a sign on the default lobby, I click on the sign and it doesn't throw me anywhere. The game won't start and won't even start, I don't see anything in the inventory. To the other player, switching teams and other items from the plugin appear in the inventory, but the game doesn't start and nothing further happens.

I'm using the default map and default lobby, with the lobby set to a world called "arcade".

Paper Plugins: (1):

  • SignedVelocity
    Bukkit Plugins: (49):
  • AntiPopup, ArmorStandTools, *asCMD, BeastTokens, CancelChat, Citizens, CustomAdvancements, CyberLevels, DecentHolograms, DeluxeMenus, DiscordSRV, Essentials, ExcellentCrates, FastAsyncWorldEdit, goBrush, goPaint, Guilds, HideAndSeek, *HostifyMonitor, ItemsAdder, LibsDisguises, LiteBans, LoneLibs, LuckPerms, MineMarket, MissileWars, Multiverse-Core, MyCommand, NexEngine, NoPlugins. Panilla, PAPIProxyBridge, PlaceholderAPI, Plan, PlugManX, ProtocolLib, QualityArmory, Skywars, spark, SurvivalGames, SyncCommands, TAB, Vault, ViaBackwards, ViaVersion, VoidGen, VoxelSniper, Vulcan, WorldGuard

To Reproduce
Run the plugin setup with custom world for lobby.

Expected behavior
It should let me play the game.

Screenshots

Server (please complete the following information):

  • OS: Debian
  • Minecraft version 1.20.4
  • Java version 17
  • Version 4.6.0

Additional context
Full log:

https://paste.gg/p/anonymous/03e37cafa6104930811bcb6889b09e34

Restructuring files

Here I would like to suggest a new file order, which is more intuitive to find the classes. The old order, especially the "wrapper", was based on technical aspects, but it feels harder to find the correct files while the developing.

Preview:
I was able to build this restructuring without any access problems.
https://github.com/RedstoneFuture/missilewars/tree/Workspace/Reorder_v1/missilewars-plugin/src/main/java/de/butzlabben/missilewars


Changes:

Commands:

  • /cmd/* -> /commands/*

Configuration Management:

  • MessageConfig.java -> /configuration/Messages.java
  • Config.java -> /configuration/Config.java
  • /wrapper/abstracts/arena/* -> /configuration/arena/*
  • /wrapper/abstracts/Arena.java -> /configuration/arena/Arena.java
  • /wrapper/abstracts/Lobby.java -> /configuration/Lobby.java

Equipment:

  • /util/PlayerEquipmentRandomizer.java -> /game/equipment/PlayerEquipmentRandomizer.java
  • /wrapper/game/MissileGameEquipment.java -> /game/equipment/MissileGameEquipment.java
  • /wrapper/game/SpecialGameEquipment.java -> /game/equipment/SpecialGameEquipment.java

Misc Game Features:

  • /util/ScoreboardManager.java -> /game/misc/ScoreboardManager.java
  • /wrapper/game/RespawnGoldBlock.java -> /game/misc/RespawnGoldBlock.java
  • /wrapper/game/Shield.java -> /game/misc/Shield.java
  • /wrapper/stats/* -> /game/stats/*
  • /wrapper/event/* ->/event/*
  • /wrapper/geometry/* -> /util/geometry/*
  • /wrapper/player/Interval.java -> /util/missile/Interval.java
  • /wrapper/game/Team.java -> /game/Team.java
  • /wrapper/abstracts/GameWorld.java -> /game/GameWorld.java
  • /wrapper/missile/* -> /util/missile/*
  • /wrapper/signs/* -> /util/signs/*

Player:

  • /wrapper/player/MWPlayer.java -> /player/MWPlayer.java
  • /wrapper/player/PlayerData.java -> /player/PlayerData.java

Game Enums:

  • /game/GameState.java -> /game/enums/GameState.java
  • /game/GameResult.java -> /game/enums/GameResult.java
  • /wrapper/abstracts/MapChooseProcedure.java -> /game/enums/MapChooseProcedure.java

grafik

empty inventory required to connect

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Could be. This time my idea is to set the player to have an empty inventory to join the game. You fixed the inventory save last time, but I'd still prefer them to have nothing in the inventory (you never know what can go wrong).

Describe the solution you'd like
A clear and concise description of what you want to happen.

I would imagine a setting so that you can only join the game with an empty inventory. For example require-empty-inv: true/false

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Alternatively, it might not be in the global setting, but would be set for each arena separately

Additional context
Add any other context or screenshots about the feature request here.

Refactoring of Games.java

The class Games.java is the central object for a game. However, some methods and fields can be outsourced to manager classes to keep the Games class a bit more manageable. The following is a suggestion for outsourcing:

Games.java

  • NEW: method EquipmentManager()
  • NEW: method TaskManager()
  • DELETE: method getScoreboard() -> Using of ScoreboardManager

Moving from Game.java to Lobby.java

  • method teleportToLobbySpawn()
  • method teleportToAfterGameSpawn()

Moving from Game.java to Arena.java

  • method teleportToArenaSpectatorSpawn()

Moving from Game.java to EquipmentManager.java

  • field ItemStack customBow (+ Getter)
  • field ItemStack customPickaxe (+ Getter)
  • field MissileGameEquipment missileEquipment (+ Getter)
  • field SpecialGameEquipment specialEquipment (+ Getter)
  • method createGameItems()
  • method sendGameItems()

Moving from Game.java to TaskManager.java

  • field Timer timer (+ Getter)
  • field BukkitTask bt (+ Getter)

stats don't work

Describe the bug
A clear and concise description of what the bug is.
statistics command not working

To Reproduce
Steps to reproduce the behavior:

Type the command /mw stats players
Watch the console

Expected behavior
A clear and concise description of what you expected to happen.

The command will be functional

Screenshots
If applicable, add screenshots to help explain your problem.

image

Server (please complete the following information):

  • OS: [e.g. Debian, Windows]
  • Minecraft version [e.g. 1.12, 1.16, 1.17] purpur 1.20.2
  • Java version [e.g. 11, 17]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Error: https://pastebin.com/SPXdKeXp

custom chat in the game

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Not quite. But other players can be disturbed by the fact that they read the messages of those who are currently playing missilewars and are not aware of what is happening

Describe the solution you'd like
A clear and concise description of what you want to happen.

I would imagine a separate chat, so if I'm in the game, my chat messages would only be seen by players who are also in the game.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

and one offtopic thing, is it better for you to support via the donate button or by buying a plugin?

Clean up the messages.yml, Using of variables

Clean up the messages.yml / Using of message categories

The advantage here is that the admin knows better what these settings are when setting them up. It becomes altogether clearer.

Example: OLD

game_starts_new_in: Game starts new in &e%seconds% &7seconds
game_ends_in_minutes: Game ends in &e%minutes% &7minutes
game_ends_in_seconds: Game ends in &e%seconds% &7seconds
game_starts_in: Game starts in &e%seconds% &7seconds
not_enough_players: '&cThere are not enough players online'
teams_unequal: '&cThe teams are unequal distributed'
game_starts: '&aThe game starts'
fall_protection: '&cFall protection inactive in %seconds% seconds'
fall_protection_inactive: '&cFall protection inactive'
fall_protection_deactivated: '&cFall protection deactivated by sneaking'

NEW:

lobby:
  not_enough_players: '&cThere are not enough players online'
  teams_unequal: '&cThe teams are unequal distributed'
game_timer:
  game_starts_new_in: Game starts new in &e%seconds% &7seconds
  starts: '&aThe game starts'
  game_ends_in_minutes: Game ends in &e%minutes% &7minutes
  game_ends_in_seconds: Game ends in &e%seconds% &7seconds
endgame_timer:
  game_starts_in: Game starts in &e%seconds% &7seconds
fall_protection:
  timer: '&cFall protection inactive in %seconds% seconds'
  inactive: '&cFall protection inactive'
  deactivated: '&cFall protection deactivated by sneaking'

Using of variables for the settings in the messages.yml as for the config.yml:

The advantage here is that you no longer have to read the config within the plugin. In addition, you can also see which messages are no longer used in the plugin.

    public static boolean isContactAuth() {
        return cfg.getBoolean("contact_auth_server");
    }

public static boolean isContactAuth() {
return cfg.getBoolean("contact_auth_server");
}

Can't read players locale error

Describe the bug
A clear and concise description of what the bug is.

The server writes the error Can't read players locale https://pastebin.com/m4qb4Sei

To Reproduce
Steps to reproduce the behavior:

Update server to 1.20.2+
connect to the server
watch the console

Expected behavior
A clear and concise description of what you expected to happen.

The console will not write an error

Screenshots
If applicable, add screenshots to help explain your problem.

Server (please complete the following information):

  • OS: [e.g. Debian, Windows]
  • Minecraft version purpur 1.20.2
  • Java version Java 17.0.1 OpenJDK
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

It should be fixed by a new compilation aikar/commands#402

Team color in tab

Is your feature request related to a problem? Please describe.
Hello, I used this plugin a few years ago, when the color of the player name in the tab was related to the team. But does the latest version not have this function, and the names are all white?
image

Describe the solution you'd like
Player name in tab with team color

The cooldown for obtaining missiles significantly shortens after dying.

Describe the bug
When playing the missile war game, there is an issue with the missile cooldown after respawning. The cooldown time for obtaining a missile is significantly reduced compared to the normal cooldown time.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the missile war game.
  2. Allow the missile to go on its normal cooldown timer.
  3. Quickly get defeated or die in the game.
  4. Respawn or revive in the game.
  5. Try to obtain another missile.

Expected behavior
The expected behavior is that the missile cooldown timer should remain consistent and not be affected by the player's death or respawn. It should maintain the regular cooldown time, even after the player dies and respawns.

Screenshots

Minecraft_.1.20.1.-.2023-08-02.17-33-09_Trim.mp4

Server (please complete the following information):

  • OS: [Debian]
  • Minecraft version [1.20.1]
  • Java version [17]
  • Version [v4.5.3]

Additional context
Add any other context about the problem here.

Shield will not be loaded

Describe the bug
A clear and concise description of what the bug is.
The schematic of the shield is misplaced. It should be in missiles, but it isn't. When I move it (even with the server turned off) it still won't stay there.

To Reproduce
Steps to reproduce the behavior:

Try moving the shield to the correct folder, it won't stay there.

Expected behavior
A clear and concise description of what you expected to happen.

The shield will be in the correct folder.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Server (please complete the following information):

  • OS: [e.g. Debian, Windows]
  • Minecraft version [e.g. 1.12, 1.16, 1.17] purpur 1.19.3
  • Java version [e.g. 11, 17]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Equalize the game

Hello, can you please somehow add an option that if there is an unequal game for ex 2v1, have a option to lower the time it takes until you generate an item.2v1 is very hard as the oponents gets double the items.

Team change - wrong syntax check

Describe the bug
A clear and concise description of what the bug is.

I can't change the team - it says too many arguments (see screen).

To Reproduce
Steps to reproduce the behavior:

Try to change the team - error

Expected behavior
A clear and concise description of what you expected to happen.

Changing the team will work

Screenshots
If applicable, add screenshots to help explain your problem.

image

Server (please complete the following information):

  • OS: [e.g. Debian, Windows]
  • Minecraft version [e.g. 1.12, 1.16, 1.17] purpur 1.19.3
  • Java version [e.g. 11, 17]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Placeholder with winners

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

placeholder (or even a hologram) to display the wins (or losses) of players, for example %missilewars_arena_wins>% and it would be possible to set how many people should list it (for example, top5)

Describe the solution you'd like
A clear and concise description of what you want to happen.

New placeholder, or even holograms

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

I would like something like this (this one specifically is from paintball - wins and kills per month).

image

Restructuring EventListener files

  • /PlayerListener OK
  • /EndListener -> /game/EndListener
  • /GameListener -> /game/GameListener
  • /LobbyListener -> /game/LobbyListener
  • /signs/ClickListener -> /SignListener (only 1 EventHandler)
  • /signs/ManageListener -> /SignListener (only 2 EventHandler)

Error when starting the plugin

Describe the bug
When the server starts, there are an error and the plugin can't be enabled

To Reproduce
Steps to reproduce the behavior:

  1. Paper 411 (1.17.1)
  2. Java 17J9 (ghcr.io/pterodactyl/yolks:java_17J9)
  3. Start the server

Error:

[14:10:56 INFO]: [MissileWars] Enabling MissileWars v4.5.1
[14:10:56 INFO]: [MW] Boot | This server is running MissileWars v4.5.1 by Butzlabben
[14:10:56 INFO]: [MW] Boot | Loading properties...
[14:10:56 INFO]: [MW] Boot | Registering commands
[14:10:56 INFO]: [MissileWars] [ACF] Enabled Asynchronous Tab Completion Support!
[14:10:56 ERROR]: Error occurred while enabling MissileWars v4.5.1 (Is it up to date?)
java.lang.NoSuchMethodError: com/fasterxml/jackson/dataformat/yaml/YAMLFactory._createContentReference(Ljava/lang/Object;)Lcom/fasterxml/jackson/core/io/ContentReference; (loaded from file:/home/container/plugins/MissileWars-4.5.1.jar by PluginClassLoader{plugin=MissileWars v4.5.1, pluginEnabled=true, url=plugins/MissileWars-4.5.1.jar}) called from class com.fasterxml.jackson.dataformat.yaml.YAMLFactory (loaded from file:/home/container/plugins/MissileWars-4.5.1.jar by PluginClassLoader{plugin=MissileWars v4.5.1, pluginEnabled=true, url=plugins/MissileWars-4.5.1.jar}).
        at com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createParser(YAMLFactory.java:412) ~[MissileWars-4.5.1.jar:?]
        at com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createParser(YAMLFactory.java:386) ~[MissileWars-4.5.1.jar:?]
        at com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createParser(YAMLFactory.java:15) ~[MissileWars-4.5.1.jar:?]
        at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3548) ~[MissileWars-4.5.1.jar:?]
        at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3516) ~[MissileWars-4.5.1.jar:?]
        at de.butzlabben.missilewars.util.serialization.Serializer.yamlToJson(Serializer.java:120) ~[MissileWars-4.5.1.jar:?]
        at de.butzlabben.missilewars.util.serialization.Serializer.deserialize(Serializer.java:68) ~[MissileWars-4.5.1.jar:?]
        at de.butzlabben.missilewars.game.Arenas.load(Arenas.java:68) ~[MissileWars-4.5.1.jar:?]
        at de.butzlabben.missilewars.MissileWars.onEnable(MissileWars.java:103) ~[MissileWars-4.5.1.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[patched_1.17.1.jar:git-Paper-411]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.17.1.jar:git-Paper-411]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.17.1.jar:git-Paper-411]
        at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:561) ~[patched_1.17.1.jar:git-Paper-411]
        at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:475) ~[patched_1.17.1.jar:git-Paper-411]
        at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:733) ~[patched_1.17.1.jar:git-Paper-411]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:317) ~[patched_1.17.1.jar:git-Paper-411]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1220) ~[patched_1.17.1.jar:git-Paper-411]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Paper-411]
        at java.lang.Thread.run(Thread.java:857) ~[?:?]
[14:10:56 INFO]: [MissileWars] Disabling MissileWars v4.5.1
[14:10:56 INFO]: [MW] Error | [MySQL] Connection does not exist or was already closed

Items are disapearing

Hello, Items are disapearing after you die.If keepinventory is set true, each time you die, I receive a bow.

Solution: Try to clear inventory and regive items back to player on death.

Tested on 1.19.2

Unexpected Server restart with /ms restart

When an operator types in /mw restart or /mw appendrestart not only MissleWars restarts, but the whole Spigot server restarts as well.
Even though this is expected behaviour this is not optimal in every situation and/ or is not conveyed enough. This can be problematic with Spigot servers that have other gamemodes and the operators just want to restart MissleWars.

So I would recommend either an option in the config.yml or an extension to the command so that they look like this: /mw restart <game|server> or /mw appendrestart <game|server> and when no parameter is given the game is the default option so that nothing else is bothered.

Player Data does not load from file

Describe the bug
A clear and concise description of what the bug is.

We found that the plugin deletes items that were in the inventory before connecting to the game

To Reproduce
Steps to reproduce the behavior:

  1. Take some items
  2. Join the game
  3. Leave the game

Expected behavior
A clear and concise description of what you expected to happen.

Items in inventory will remain. Alternatively, an empty inventory will be required to join the game.

Screenshots
If applicable, add screenshots to help explain your problem.

Minecraft__1.19.3_-_Multiplayer_3rd-party_Server_2023-04-10_14-46-49.1.mp4

Server (please complete the following information):

  • OS: [e.g. Debian, Windows]
  • Minecraft version [e.g. 1.12, 1.16, 1.17] purpur 1.19.3
  • Java version [e.g. 11, 17]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

I'm sorry I found your plugin and now I'm overwhelming you :D but I promise that when the things I wrote are resolved, we'll happily buy the plugin

receive missiles more often with the game progresses

Hey, can you make it so that the longer the game lasts, the more eggs you get, for example after 10 minutes of game, you get an egg every 10 seconds, after 20 minutes of game you get an egg every 5 seconds and so on

Some players can't click the signs to join the game

A few people experience a bug when they try clicking a sign and then nothing happens. No messages in console, nothing.

Steps to reproduce the behavior:
Use my config, be the chosen one, click the sign; I have geyserMC on my server, and bedrock players have slightly better chances to get this error.

Version: paper 1.20.1, velocity 260

Config files (couldn't attach .yml here): https://drive.google.com/drive/folders/18EsekKA5fysO4JgZXk7YKEICYt_1dYCS?usp=sharing

I can send anything else you want

GUI reworking

The main reason for the new GUI concept is the requirement for the possibility to enter the "spectater" group in the lobby already.

It is also planned to be able to select the group (A, B, Specate) via Menu 2 when entering a game that is already running. The new player will be in Godmode for a short time after entering the arena.


Main menu: Hotbar
grafik

  • link for team menu
  • link for world voting menu
  • info about the area statics [new]

Team selection: Chest-Menu
grafik

  • team a
  • spectate [new]
  • team b

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.