update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Binary file not shown.
BIN
target/classes/lnmpro/Commands/EditKitCommand.class
Normal file
BIN
target/classes/lnmpro/Commands/EditKitCommand.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user