diff --git a/src/main/java/com/io/yutian/colorblindwar/game/Game.java b/src/main/java/com/io/yutian/colorblindwar/game/Game.java index b1db256..d83ac10 100644 --- a/src/main/java/com/io/yutian/colorblindwar/game/Game.java +++ b/src/main/java/com/io/yutian/colorblindwar/game/Game.java @@ -5,7 +5,6 @@ import com.io.yutian.colorblindwar.util.*; import com.sk89q.worldedit.EditSession; import com.sk89q.worldedit.WorldEdit; import com.sk89q.worldedit.bukkit.BukkitAdapter; -import com.sk89q.worldedit.function.mask.BlockTypeMask; import com.sk89q.worldedit.function.mask.InverseSingleBlockTypeMask; import com.sk89q.worldedit.function.mask.Mask; import com.sk89q.worldedit.function.operation.Operations; @@ -13,7 +12,6 @@ import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.regions.CuboidRegion; import com.sk89q.worldedit.world.block.BlockTypes; import net.kyori.adventure.text.Component; -import net.kyori.adventure.text.TextComponent; import net.kyori.adventure.text.format.TextColor; import org.bukkit.*; import org.bukkit.boss.BarColor; diff --git a/src/main/java/com/io/yutian/colorblindwar/util/BuildSpawner.java b/src/main/java/com/io/yutian/colorblindwar/util/BuildSpawner.java index 1f8d356..7f79cc9 100644 --- a/src/main/java/com/io/yutian/colorblindwar/util/BuildSpawner.java +++ b/src/main/java/com/io/yutian/colorblindwar/util/BuildSpawner.java @@ -231,7 +231,7 @@ public class BuildSpawner { public enum SpawnMode { MODE_1, - MODE_2; + MODE_2 } diff --git a/src/main/java/com/io/yutian/colorblindwar/util/RandomUtil.java b/src/main/java/com/io/yutian/colorblindwar/util/RandomUtil.java index 0643cff..fdae437 100644 --- a/src/main/java/com/io/yutian/colorblindwar/util/RandomUtil.java +++ b/src/main/java/com/io/yutian/colorblindwar/util/RandomUtil.java @@ -38,8 +38,7 @@ public class RandomUtil { double rx = getRandomDouble(minX, maxX, 3); double ry = getRandomDouble(minY, maxY, 3); double rz = getRandomDouble(minZ, maxZ, 3); - Location location = new Location(world, rx, ry, rz); - return location; + return new Location(world, rx, ry, rz); } }