12
1
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-03-27 17:57:51 +01:00
Ursprung 68a2067b88
Commit f69e864541
4 geänderte Dateien mit 25 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -289,7 +289,7 @@ public class Config {
RedRotate = teamRedRotate;
BlueRotate = teamBlueRotate;
int arenaYSize = schemsizeY + PreperationArea;
int arenaYSize = blueCornerY - underBorder + schemsizeY + PreperationArea;
RedPasteRegion = new Region(teamRedCornerX, teamRedCornerY, teamRedCornerZ, schemsizeX, schemsizeY, schemsizeZ);
BluePasteRegion = new Region(blueCornerX, blueCornerY, blueCornerZ, schemsizeX, schemsizeY, schemsizeZ);

Datei anzeigen

@ -19,10 +19,12 @@
package de.steamwar.fightsystem.utils;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.block.Block;
import java.util.function.ObjIntConsumer;
import java.util.logging.Level;
public class Region {
@ -39,6 +41,7 @@ public class Region {
}
public Region(int minX, int minY, int minZ, int sizeX, int sizeY, int sizeZ) {
Bukkit.getLogger().log(Level.INFO, minX + " " + minY + " " + minZ + " " + sizeX + " " + sizeY + " " + sizeZ);
this.minX = minX;
this.minY = minY;
this.minZ = minZ;

Datei anzeigen

@ -1,3 +1,22 @@
/*
This file is a part of the SteamWar software.
Copyright (C) 2020 SteamWar.de-Serverteam
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.steamwar.fightsystem.states;
import de.steamwar.fightsystem.ArenaMode;

Datei anzeigen

@ -28,7 +28,7 @@ import java.util.Set;
public class StateDependentCommand extends StateDependent {
private static final CommandExecutor unavailible = (sender, cmd, s, strings) -> {
private static final CommandExecutor unavailable = (sender, cmd, s, strings) -> {
sender.sendMessage(FightSystem.PREFIX + "§cDieser Befehl ist zu diesem Kampfzeitpunkt nicht verfügbar.");
return false;
};
@ -52,6 +52,6 @@ public class StateDependentCommand extends StateDependent {
@Override
public void disable() {
command.setExecutor(unavailible);
command.setExecutor(unavailable);
}
}