Format code

This commit is contained in:
2026-05-16 23:08:09 +02:00
parent 81dd8045f2
commit d110df924e
562 changed files with 11025 additions and 10059 deletions
+17 -17
View File
@@ -17,23 +17,23 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
PREFIX=§eTowerRun§8»§r
PREFIX = §eTowerRun§8»§r
PLAYER_DIED=§c{0} §7died§8!
PLAYER_ESCAPE=§a{0} §7escaped§8!
GAME_START=§aThe game has started§8!
GAME_WIN=§a{0} §7has won the game§8!
GAME_STARTING=§7Starting: §e{0}s§8!
GAME_WAITING=§7Waiting for players§8...
SERVER_STOPPING=§cThe server stops in §e{0}s§8!
SERVER_RESET=§cThe server will be reset in §e{0}s§8!
KEY_NAME=§eKey
KEY_FOUND=§a{0} §7found a key§8!
GAME_TIE=§aThe game ended in a tie§8!
GAME_TIME=§a{0}:{1}
CATCH_UP_WARNING=§4!! §cYou should catch up §4!!
PLAYER_DIED = §c{0} §7died§8!
PLAYER_ESCAPE = §a{0} §7escaped§8!
GAME_START = §aThe game has started§8!
GAME_WIN = §a{0} §7has won the game§8!
GAME_STARTING = §7Starting: §e{0}s§8!
GAME_WAITING = §7Waiting for players§8...
SERVER_STOPPING = §cThe server stops in §e{0}s§8!
SERVER_RESET = §cThe server will be reset in §e{0}s§8!
KEY_NAME = §eKey
KEY_FOUND = §a{0} §7found a key§8!
GAME_TIE = §aThe game ended in a tie§8!
GAME_TIME = §a{0}:{1}
CATCH_UP_WARNING = §4!! §cYou should catch up §4!!
COMMAND_START=§aThe game will start soon§8!
COMMAND_START = §aThe game will start soon§8!
PARTICIPANT_CHAT={0} {1}§8» §7{2}
SPECTATOR_CHAT=§7{0}§8» §7{1}
PARTICIPANT_CHAT = {0} {1}§8» §7{2}
SPECTATOR_CHAT = §7{0}§8» §7{1}
+13 -13
View File
@@ -17,19 +17,19 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
PLAYER_DIED=§c{0} §7ist gestorben§8!
PLAYER_ESCAPE=§a{0} §7ist entkommen§8!
GAME_START=§aDas Spiel beginnt§8!
GAME_WIN=§a{0} §7hat das Spiel gewonnen§8!
GAME_STARTING=§7Das Spiel startet in §e{0}s§8!
GAME_WAITING=§7Warte auf weitere Spieler§8...
SERVER_STOPPING=§cDer Server stoppt in §e{0}s§8!
SERVER_RESET=§cDer Server wird in §e{0}s §czur§ckgesetzt§8!
GAME_TIE=§7Keiner hat gewonnen§8!
PLAYER_DIED = §c{0} §7ist gestorben§8!
PLAYER_ESCAPE = §a{0} §7ist entkommen§8!
GAME_START = §aDas Spiel beginnt§8!
GAME_WIN = §a{0} §7hat das Spiel gewonnen§8!
GAME_STARTING = §7Das Spiel startet in §e{0}s§8!
GAME_WAITING = §7Warte auf weitere Spieler§8...
SERVER_STOPPING = §cDer Server stoppt in §e{0}s§8!
SERVER_RESET = §cDer Server wird in §e{0}s §czur§ckgesetzt§8!
GAME_TIE = §7Keiner hat gewonnen§8!
KEY_NAME=§eSchl§ssel
KEY_FOUND=§a{0} §7hat einen Schl§ssel gefunden§8!
KEY_NAME = §eSchl§ssel
KEY_FOUND = §a{0} §7hat einen Schl§ssel gefunden§8!
CATCH_UP_WARNING=§4!! §cDu solltest aufholen §4!!
CATCH_UP_WARNING = §4!! §cDu solltest aufholen §4!!
COMMAND_START=§7Das Spiel startet bald§8!
COMMAND_START = §7Das Spiel startet bald§8!
@@ -43,13 +43,22 @@ public abstract class Countdown extends GameStateToggleListener {
int defaultTime() {
return 0;
}
void timerEnd() {}
void timerEnd() {
}
boolean timerShouldCancel() {
return true;
}
void run() {}
void timerStart() {}
void timerReset() {}
void run() {
}
void timerStart() {
}
void timerReset() {
}
private void timer() {
if (timerShouldCancel()) {
@@ -52,7 +52,7 @@ public class GlobalListener extends GameStateBukkitListener implements Listener
}
TowerRunPlayer.remove(event.getPlayer());
if(Bukkit.getOnlinePlayers().isEmpty() || (Bukkit.getOnlinePlayers().size() == 1 && Bukkit.getOnlinePlayers().stream().allMatch(player -> player == event.getPlayer()))) {
if (Bukkit.getOnlinePlayers().isEmpty() || (Bukkit.getOnlinePlayers().size() == 1 && Bukkit.getOnlinePlayers().stream().allMatch(player -> player == event.getPlayer()))) {
Bukkit.shutdown();
}
}
@@ -278,7 +278,7 @@ public class IngameListener extends GameStateBukkitListener {
break;
}
Pos pos = new Pos(block.getLocation().getBlockX(), block.getLocation().getBlockY(), block.getLocation().getBlockZ());
int delay = meltingTime + 1 + RANDOM.nextInt(30*20)-30*10;
int delay = meltingTime + 1 + RANDOM.nextInt(30 * 20) - 30 * 10;
if (delay < 0) delay = meltingTime + 1;
blocksToMelt.putIfAbsent(pos, time + delay);
}
+1 -1
View File
@@ -2,4 +2,4 @@ name: TowerRun
version: 1.0.0
main: de.steamwar.towerrun.TowerRun
api-version: 1.21
depend: [SpigotCore]
depend: [ SpigotCore ]