Fixed some following bugs.

This commit is contained in:
batchprogrammer314
2021-06-29 16:29:30 -05:00
parent 68ba0aa28c
commit 70b39259fa
4 changed files with 90 additions and 22 deletions

View File

@@ -0,0 +1,10 @@
package net.nuggetmc.ai.utils;
import org.bukkit.GameMode;
public class PlayerUtils {
public static boolean isVulnerableGamemode(GameMode mode) {
return mode == GameMode.SURVIVAL || mode == GameMode.ADVENTURE;
}
}