This commit is contained in:
2025-07-30 09:32:18 +02:00
parent ac6c983229
commit 221118d04e
7 changed files with 7 additions and 7 deletions

View File

@@ -57,7 +57,7 @@ public class EditKitCommand implements CommandExecutor, TabCompleter {
@Override
public boolean onCommand(@NotNull CommandSender cmds, @NotNull Command command, @NotNull String s, @NotNull String[] args) {
if (cmds.hasPermission("wolfffa.command.editkit")) {
/*if (cmds.hasPermission("wolfffa.command.editkit")) {
if (cmds instanceof Player player) {
if (args.length > 0) {
Kits kitManager = new Kits(plugin);
@@ -192,7 +192,7 @@ public class EditKitCommand implements CommandExecutor, TabCompleter {
}
}
}
}
}*/
return true;
}

View File

@@ -74,16 +74,16 @@ public class DuelEndListener implements Listener {
Bukkit.getScheduler().runTaskLater(plugin, () -> {
try {
Location arenaLoc = (Location) player.getMetadata("ArenaLoc").get(0).value();
Location loc1 = new Location(arenaLoc.getWorld(), arenaLoc.getX() - 36, arenaLoc.getY() - 4, arenaLoc.getZ() - 30);
Location loc2 = new Location(arenaLoc.getWorld(), arenaLoc.getX() + 36, arenaLoc.getY() + 11, arenaLoc.getZ() + 30);
schematic.removeSchematic(arenaLoc.getWorld(), loc1, loc2);
Location spawn = new Location(Bukkit.getWorld("world"), 0, 3, 0, 0, 0);
player.setGameMode(GameMode.ADVENTURE);
enemy.setGameMode(GameMode.ADVENTURE);
player.teleport(spawn);
enemy.teleport(spawn);
Location arenaLoc = (Location) player.getMetadata("ArenaLoc").get(0).value();
Location loc1 = new Location(arenaLoc.getWorld(), arenaLoc.getX() - 36, arenaLoc.getY() - 4, arenaLoc.getZ() - 30);
Location loc2 = new Location(arenaLoc.getWorld(), arenaLoc.getX() + 36, arenaLoc.getY() + 11, arenaLoc.getZ() + 30);
schematic.removeSchematic(arenaLoc.getWorld(), loc1, loc2);
} catch (Exception exception) {
exception.printStackTrace();
}