ScreamingSandals / BedWars

Simple BedWars minigame plugin for Spigot version 1.8.8 - 1.21.3
https://www.spigotmc.org/resources/bedwars.63714/
GNU Lesser General Public License v3.0
270 stars 95 forks source link

Caused by: java.lang.ClassNotFoundException: net.md_5.bungee.api.chat.BaseComponent #326

Closed jbrahy closed 3 years ago

jbrahy commented 3 years ago

Describe the bug

A clear and concise description of what the bug is. When I'm loading Bedwars this error comes up in the console.

Server and plugin version

Spigot version: [21:25:28] [Server thread/INFO]: This server is running CraftBukkit version 3159-Bukkit-887bc05 (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT) BedWars version: [21:25:29] [Server thread/INFO]: [BedWars] Loading BedWars v0.2.17

Installed plugins on server (can be obtained by /pl)

only this and worldedit. [21:28:30] [Server thread/INFO]: Plugins (2): BedWars, WorldEdit

Console log

Loading libraries, please wait... [21:25:23] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [21:25:24] [main/INFO]: Reloading ResourceManager: Default, bukkit [21:25:25] [Worker-Main-2/INFO]: Loaded 7 recipes [21:25:23] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [21:25:24] [main/INFO]: Reloading ResourceManager: Default, bukkit [21:25:25] [Worker-Main-2/INFO]: Loaded 7 recipes [21:25:28] [Server thread/INFO]: Starting minecraft server version 1.17 [21:25:28] [Server thread/INFO]: Loading properties [21:25:28] [Server thread/INFO]: Default game type: CREATIVE [21:25:28] [Server thread/INFO]: Generating keypair [21:25:28] [Server thread/INFO]: Starting Minecraft server on *:25565 [21:25:28] [Server thread/INFO]: Using epoll channel type [21:25:28] [Server thread/INFO]: This server is running CraftBukkit version 3159-Bukkit-887bc05 (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT) [21:25:29] [Server thread/INFO]: [BedWars] Loading BedWars v0.2.17 [21:25:29] [Server thread/INFO]: [WorldEdit] Loading WorldEdit v7.2.5+57d5ac9 [21:25:30] [Server thread/INFO]: Got request to register class com.sk89q.worldedit.bukkit.BukkitServerInterface with WorldEdit [com.sk89q.worldedit.extension.platform.PlatformManager@22472d31] [21:25:30] [Server thread/INFO]: [WorldEdit] Enabling WorldEdit v7.2.5+57d5ac9 [21:25:30] [Server thread/INFO]: WEPIF: Updated config file [21:25:30] [Server thread/INFO]: WEPIF: Using the Bukkit Permissions API. [21:25:30] [Server thread/WARN]:


This WorldEdit version does not fully support your version of Bukkit. When working with blocks or undoing, chests will be empty, signs will be blank, and so on. There will be no support for entity and block property-related functions. ** Please see https://worldedit.enginehub.org/en/latest/faq/#bukkit-adapters


[21:25:30] [Server thread/INFO]: [WorldEdit] Default configuration file written: config.yml [21:25:31] [Server thread/INFO]: [WorldEdit] ==================================================== [21:25:31] [Server thread/INFO]: [WorldEdit] WorldEdit works better if you use Paper [21:25:31] [Server thread/INFO]: [WorldEdit] as your server software.

[21:25:31] [Server thread/INFO]: [WorldEdit] Paper offers significant performance improvements, [21:25:31] [Server thread/INFO]: [WorldEdit] bug fixes, security enhancements and optional [21:25:31] [Server thread/INFO]: [WorldEdit] features for server owners to enhance their server.

[21:25:31] [Server thread/INFO]: [WorldEdit] Paper includes Timings v2, which is significantly [21:25:31] [Server thread/INFO]: [WorldEdit] better at diagnosing lag problems over v1.

[21:25:31] [Server thread/INFO]: [WorldEdit] All of your plugins should still work, and the [21:25:31] [Server thread/INFO]: [WorldEdit] Paper community will gladly help you fix any issues.

[21:25:31] [Server thread/INFO]: [WorldEdit] Join the Paper Community @ https://papermc.io [21:25:31] [Server thread/INFO]: [WorldEdit] ==================================================== [21:25:31] [Server thread/INFO]: Preparing level "world" [21:25:31] [Server thread/INFO]: Registering commands with com.sk89q.worldedit.bukkit.BukkitServerInterface [21:25:31] [Server thread/WARN]: Unable to find spawn biome [21:25:34] [Server thread/WARN]: Unable to find spawn biome [21:25:35] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld [21:25:35] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:36] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:36] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:37] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:37] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:38] [Worker-Main-2/INFO]: Preparing spawn area: 4% [21:25:38] [Worker-Main-2/INFO]: Preparing spawn area: 7% [21:25:39] [Worker-Main-2/INFO]: Preparing spawn area: 8% [21:25:39] [Worker-Main-2/INFO]: Preparing spawn area: 22% [21:25:40] [Worker-Main-2/INFO]: Preparing spawn area: 40% [21:25:40] [Worker-Main-2/INFO]: Preparing spawn area: 54% [21:25:41] [Worker-Main-2/INFO]: Preparing spawn area: 73% [21:25:41] [Server thread/INFO]: Time elapsed: 6169 ms [21:25:41] [Server thread/INFO]: Preparing start region for dimension minecraft:the_nether [21:25:42] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:42] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:42] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:43] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:43] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:44] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:44] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:45] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:45] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:46] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:46] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:47] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:47] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:48] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:48] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:49] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:49] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:50] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:50] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:51] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:51] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:52] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:52] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:53] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:53] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:25:54] [Worker-Main-2/INFO]: Preparing spawn area: 1% [21:25:54] [Worker-Main-2/INFO]: Preparing spawn area: 1% [21:25:55] [Worker-Main-2/INFO]: Preparing spawn area: 1% [21:25:55] [Worker-Main-2/INFO]: Preparing spawn area: 1% [21:25:56] [Worker-Main-2/INFO]: Preparing spawn area: 1% [21:25:56] [Worker-Main-2/INFO]: Preparing spawn area: 1% [21:25:57] [Worker-Main-2/INFO]: Preparing spawn area: 1% [21:25:57] [Worker-Main-2/INFO]: Preparing spawn area: 2% [21:25:58] [Worker-Main-2/INFO]: Preparing spawn area: 2% [21:25:58] [Worker-Main-2/INFO]: Preparing spawn area: 2% [21:25:59] [Worker-Main-2/INFO]: Preparing spawn area: 2% [21:25:59] [Worker-Main-2/INFO]: Preparing spawn area: 7% [21:26:00] [Worker-Main-2/INFO]: Preparing spawn area: 13% [21:26:01] [Worker-Main-2/INFO]: Preparing spawn area: 20% [21:26:01] [Worker-Main-2/INFO]: Preparing spawn area: 22% [21:26:01] [Worker-Main-2/INFO]: Preparing spawn area: 46% [21:26:02] [Worker-Main-2/INFO]: Preparing spawn area: 56% [21:26:02] [Worker-Main-2/INFO]: Preparing spawn area: 69% [21:26:03] [Worker-Main-2/INFO]: Preparing spawn area: 70% [21:26:03] [Worker-Main-2/INFO]: Preparing spawn area: 86% [21:26:04] [Worker-Main-2/INFO]: Preparing spawn area: 93% [21:26:04] [Server thread/INFO]: Time elapsed: 22860 ms [21:26:04] [Server thread/INFO]: Preparing start region for dimension minecraft:the_end [21:26:04] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:26:05] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:26:05] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:26:06] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:26:06] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:26:07] [Worker-Main-2/INFO]: Preparing spawn area: 0% [21:26:07] [Worker-Main-2/INFO]: Preparing spawn area: 2% [21:26:08] [Worker-Main-2/INFO]: Preparing spawn area: 2% [21:26:08] [Server thread/INFO]: Time elapsed: 3644 ms [21:26:08] [Server thread/INFO]: [BedWars] Enabling BedWars v0.2.17 [21:26:08] [Server thread/INFO]: [BedWars] Successfully loaded messages for BedWars! Language: English [21:26:08] [Server thread/INFO]: [BedWars] Loading statistics from YAML-File ... [21:26:08] [Server thread/ERROR]: Error occurred while enabling BedWars v0.2.17 (Is it up to date?) java.lang.NoClassDefFoundError: net/md_5/bungee/api/chat/BaseComponent at org.screamingsandals.bedwars.Main.onEnable(Main.java:418) ~[?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[craftbukkit-1.17.jar:3159-Bukkit-887bc05] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:334) ~[craftbukkit-1.17.jar:3159-Bukkit-887bc05] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:479) ~[craftbukkit-1.17.jar:3159-Bukkit-887bc05] at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:481) ~[craftbukkit-1.17.jar:3159-Bukkit-887bc05] at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:407) ~[craftbukkit-1.17.jar:3159-Bukkit-887bc05] at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:598) ~[craftbukkit-1.17.jar:3159-Bukkit-887bc05] at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:251) ~[craftbukkit-1.17.jar:3159-Bukkit-887bc05] at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:964) ~[craftbukkit-1.17.jar:3159-Bukkit-887bc05] at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:297) ~[craftbukkit-1.17.jar:3159-Bukkit-887bc05] at java.lang.Thread.run(Thread.java:831) [?:?] Caused by: java.lang.ClassNotFoundException: net.md_5.bungee.api.chat.BaseComponent at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:142) ~[craftbukkit-1.17.jar:3159-Bukkit-887bc05] at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:99) ~[craftbukkit-1.17.jar:3159-Bukkit-887bc05] at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?] ... 11 more

Configuration (of config.yml and shop.yml)

locale: en debug: false allow-crafting: false keep-inventory-on-death: false in-lobby-colored-leather-by-team: true jointeam-entity-show-name: true friendlyfire: false player-drops: true join-randomly-after-lobby-timeout: false prevent-killing-villagers: true compass-enabled: true join-randomly-on-lobby-join: false add-wool-to-inventory-on-join: true prevent-spawning-mobs: true spawner-holograms: true spawner-disable-merge: true prevent-lobby-spawn-mobs-in-radius: 16 spawner-holo-height: 0.25 spawner-holograms-countdown: true damage-when-player-is-not-in-arena: false remove-unused-target-blocks: true allow-block-falling: true game-start-items: false player-respawn-items: false gived-game-start-items: [] gived-player-respawn-items: [] disable-hunger: false automatic-coloring-in-shop: true sell-max-64-per-click-in-shop: true destroy-placed-blocks-by-explosion-except: [] destroy-placed-blocks-by-explosion: true holo-above-bed: true allow-spectator-join: false disable-server-message: player-join: false player-leave: false disable-flight: true respawn-cooldown: enabled: true time: 5 stop-team-spawners-on-die: false allow-fake-death: false allowed-commands: [] change-allowed-commands-to-blacklist: false bungee: enabled: false serverRestart: true serverStop: false server: hub auto-game-connect: false kick-when-proxy-too-slow: true motd: enabled: false waiting: '%name%: Waiting for players [%current%/%max%]' waiting_full: '%name%: Game is full [%current%/%max%]' running: '%name%: Game is running [%current%/%max%]' rebuilding: '%name%: Rebuilding...' disabled: '%name%: Game is disabled' farmBlocks: enable: false blocks: [] scoreboard: enable: true title: §a%game%§r - %time% bedLost: §c✘ anchorEmpty: §e✘ bedExists: §a✔ teamTitle: '%bed%%color%%team%' title: enabled: true fadeIn: 0 stay: 20 fadeOut: 0 shop: rows: 4 render-actual-rows: 6 render-offset: 9 render-header-start: 0 render-footer-start: 45 items-on-row: 9 show-page-numbers: true inventory-type: CHEST citizens-enabled: false items: jointeam: COMPASS leavegame: SLIME_BALL startgame: DIAMOND shopback: BARRIER shopcosmetic: GRAY_STAINED_GLASS_PANE pageback: ARROW pageforward: ARROW team-select: WHITE_WOOL vault: enable: true reward: kill: 5 win: 20 final-kill: 5 bed-destroy: 0 resources: gold: material: GOLD_INGOT color: GOLD name: Gold interval: 20 translate: resource_gold spread: 1.0 iron: material: IRON_INGOT color: GRAY name: Iron interval: 10 translate: resource_iron spread: 1.0 bronze: material: BRICK color: DARK_RED name: Bronze interval: 1 translate: resource_bronze spread: 1.0 respawn: protection-enabled: true protection-time: 10 specials: action-bar-messages: true rescue-platform: is-breakable: false delay: 0 break-time: 10 distance: 1 material: GLASS protection-wall: is-breakable: false delay: 20 break-time: 0 width: 5 height: 3 distance: 2 material: CUT_SANDSTONE tnt-sheep: speed: 0.25 follow-range: 10.0 max-target-distance: 32 explosion-time: 8 arrow-blocker: protection-time: 10 delay: 5 warp-powder: teleport-time: 6 delay: 0 magnet-shoes: probability: 75 golem: speed: 0.25 follow-range: 10 health: 20 name-format: '%teamcolor%%team% Golem' show-name: true delay: 0 collidable: false teamchest: turn-all-enderchests-to-teamchests: true throwable-fireball: explosion: 3.0 damage: 2.0 auto-igniteable-tnt: explosion-time: 8 damage-placer: true sounds: bed_destroyed: sound: ENTITY_ENDER_DRAGON_GROWL volume: 1 pitch: 1 my_bed_destroyed: sound: ENTITY_ENDER_DRAGON_GROWL volume: 1 pitch: 1 countdown: sound: UI_BUTTON_CLICK volume: 1 pitch: 1 game_start: sound: ENTITY_PLAYER_LEVELUP volume: 1 pitch: 1 team_kill: sound: ENTITY_PLAYER_LEVELUP volume: 1 pitch: 1 player_kill: sound: ENTITY_PLAYER_BIG_FALL volume: 1 pitch: 1 item_buy: sound: ENTITY_ITEM_PICKUP volume: 1 pitch: 1 upgrade_buy: sound: ENTITY_EXPERIENCE_ORB_PICKUP volume: 1 pitch: 1 respawn_cooldown_wait: sound: UI_BUTTON_CLICK volume: 1 pitch: 1 respawn_cooldown_done: sound: ENTITY_PLAYER_LEVELUP volume: 1 pitch: 1 game-effects: end: effects:

shop.yml data:

- stack:

type: GOLDEN_APPLE

amount: 1

meta:

==: ItemMeta

meta-type: UNSPECIFIC

display-name: "Example category"

lore:

- "This is my category!"

- "Please buy things inside!"

items:

- price: 50

price-type: "bronze"

stack:

type: DIAMOND_SWORD

amount: 1

meta:

==: ItemMeta

meta-type: UNSPECIFIC

enchants:

DAMAGE_ALL: 2

repair-cost: 1

Damage: 99

Value 'applycolorbyteam' is used for automatic-coloring-in-shop.

See WarpPowder for more info.

jbrahy commented 3 years ago

I'm assuming it's just that I need net.md_5.bungee.api.chat.BaseComponent but I'm not sure where to find that.

zlataovce commented 3 years ago

use spigot or paper, craftbukkit is not supported