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

Extreme Lag and game starting incorrectly #46

Closed FlyFunMan closed 5 years ago

FlyFunMan commented 5 years ago

Describe the bug Upon joining the game, I get about one or two frames a second and the council repeatedly reads what I put under "Console Log". If I manage to start the game, the player who started it doesn't get teleported (they keep the lobby items), and the game starts continuously for the other player; they cannot move. The only way to get rid of the lag is to leave the area with the bw match, even if nobody's using it. When started, no resources spawn.

Server and plugin version Spigot version: CraftBukkit version git-Spigot-e6eb36f-d3ed151 (MC: 1.13.2) (Implementing API version 1.13.2-R0.1-SNAPSHOT) BedWars version: 0.1.6

Installed plugins on server (can be obtained by /pl): VillageGenerator, NametagEdit, DeluxeTags, NoTrashPl, PlaceItemsOnGroundRebuilt, ViaVersion, BSwear, SimpleAPI, CoreProtect, Wild, WorldEdit, AdminFun, NickNames, AutoBroadcast, ArmorStandEditor, MCLib, AdvancedBan, SetSpawn, Votifier, Multiverse-Core, ProtocolLib, MCCore, SimpleGrapple, UberEnchant, CustomStructures, DragonSlayer, iDisguise, LightChatBubbles, SerialKey, TrollCommandsPlusPlus, iDisguiseGui, PermissionsEx, GrapplingHook, BannedWordsPlus, CS-CoreLib, DeepVanish, HolographicDisplays, WorldGuard, Punishmental, Slimefun, Multiverse-NetherPortals, CratesPlus, HubBasics, MobAbilities, SlimeXpansion, Minigames, BuycraftX, Minigames-Regions, SlimefunLuckyBlocks, BKCommonLib, Train_Carts, ReActions, PerWorldInventory, EnchantmentAPI, EnchantmentPack, SkillAPI, Factions, FurnitureLib, DiceFurniture, FurnitureMaker, ProtectionLib, AddLight, Essentials, KitAdder, EssentialsChat, BagOfGold, Vault, ChatPrefixer, GadgetsMenu, BedWars, Carz, DecoHeads, SimplePets, Citizens, CraftBook, SuperVanish, CommandNPC, CrateReloaded Console log: [21:12:15 WARN]: [BedWars] Task #71079 for BedWars v0.1.6 generated an exception java.lang.ClassCastException: java.base/java.lang.String cannot be cast to org.bukkit.inventory.ItemStack at misat11.bw.game.Game.run(Game.java:1513) ~[?:?] at misat11.bw.game.Game$5.run(Game.java:1817) ~[?:?] at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftTask.run(CraftTask.java:81) ~[spigot-1.13.2.jar:git-Spigot-e6eb36f-d3ed151] at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:392) [spigot-1.13.2.jar:git-Spigot-e6eb36f-d3ed151] at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:889) [spigot-1.13.2.jar:git-Spigot-e6eb36f-d3ed151] at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot-1.13.2.jar:git-Spigot-e6eb36f-d3ed151] at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:831) [spigot-1.13.2.jar:git-Spigot-e6eb36f-d3ed151] at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:729) [spigot-1.13.2.jar:git-Spigot-e6eb36f-d3ed151] at java.lang.Thread.run(Unknown Source) [?:?]

Configuration (of config.yml and shop.yml): This is only the config.yml as it's the only thing I changed.

Locale (en, cs, ru)

locale: en

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 spectator-gm3: 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

Commands whitelist

allowed-commands:

Command rewards (possible placeholders {player},{score})

rewards: enabled: false

Player won

player-win:

Give items

game-start-items: true player-respawn-items: true gived-game-start-items: [WOODEN_SHOVEL] gived-player-respawn-items: [WOODEN_SHOVEL]

Shop lore

lore: generate-automatically: true # can be set individual to items text:

Signs (%status% and %players% can be modified in messages_.yml

sign:

Lobby Hotbar (possible values: 0-8, other numbers will disable item)

hotbar: selector: 0 color: 1 start: 2 leave: 8

Do not edit this!!!

version: 2 If there are problem with only one game, paste here config of this game:

iamceph commented 5 years ago

You have an error in shop.yml.

Misat11 commented 5 years ago

It could be error in shop.yml but not in this case. Gived start items in config.yml is array of Bukkit's ItemStack, no array of String, so change this line:

gived-game-start-items: [WOODEN_SHOVEL]

to this:

gived-game-start-items: 
- ==: org.bukkit.inventory.ItemStack
  v: 1519
  type: WOODEN_SHOVEL

and do same with gived-player-respawn-items

Using Strings here instead of stacks will be added in 0.2.0