This commit is contained in:
2025-09-23 15:15:37 +02:00
parent 3be1cbc8e4
commit 11be419d33
2 changed files with 5 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ package hu.jgj52.pvpcore.Commands;
import hu.jgj52.pvpcore.Main; import hu.jgj52.pvpcore.Main;
import hu.jgj52.pvpcore.Utils.Kits; import hu.jgj52.pvpcore.Utils.Kits;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.GameMode;
import org.bukkit.command.Command; import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
@@ -29,6 +30,7 @@ public class FfaCommand implements CommandExecutor, TabCompleter {
player.getInventory().setContents(kitManager.getKit("ffa", player, false)); player.getInventory().setContents(kitManager.getKit("ffa", player, false));
player.teleport(Bukkit.getWorld("ffa").getSpawnLocation()); player.teleport(Bukkit.getWorld("ffa").getSpawnLocation());
plugin.playersInFfa.add(player); plugin.playersInFfa.add(player);
player.setGameMode(GameMode.SURVIVAL);
} catch (ExecutionException | InterruptedException e) { } catch (ExecutionException | InterruptedException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }

View File

@@ -159,6 +159,9 @@ public class WorldReset {
world.setStorm(false); world.setStorm(false);
world.setThundering(false); world.setThundering(false);
world.setTime(6000); world.setTime(6000);
WorldBorder border = world.getWorldBorder();
border.setCenter(0, 0);
border.setSize(300);
return true; return true;
} else { } else {
plugin.getLogger().severe("Failed to create arena world!"); plugin.getLogger().severe("Failed to create arena world!");