Theguyhere0 / villager-defense-minigame

A Minecraft plugin that adds a fun, customizable minigame where players defend villagers against waves of monsters
GNU General Public License v3.0
6 stars 4 forks source link

Mobs don't attack players when no waiting room exists #163

Closed lisacek closed 11 months ago

lisacek commented 1 year ago

Describe the bug Plugin is setting players adventure mode which is preventing mobs from attacking players.

To Reproduce Steps to reproduce the behavior:

  1. Start the game?

Expected behavior Mobs should be able to attack.

Screenshots https://github.com/Theguyhere0/villager-defense-minigame/blob/0a3e615f98c42e5612c77aa4062725f39fe77ed3/plugin/src/main/java/me/theguyhere/villagerdefense/plugin/tools/PlayerManager.java#L46

Server and plugin versions (please complete the following information):

Additional context I suggest using gamemode survival and handle blocking block destroy etc. differently. You are using method teleadventure even to teleport player in the arena which will keep him invencible.

Theguyhere0 commented 1 year ago

This has been something I did notice in the v1 plug-ins, but it wasn't consistent. Would you mind providing info on other plugins you use and what world the arena is in?

lisacek commented 1 year ago

put yourself into adventure mode and even regular monsters wont attack you thats the point

Theguyhere0 commented 1 year ago

I found the actual bug: whenever a waiting room isn't set, mobs don't attack the player. I'll fix this in the next production release