From 5d23d3689792dc888000e05b321c6e5f0815f480 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Mon, 18 Jan 2021 22:36:24 +0100 Subject: [PATCH] Add EventRescheduleCommand ML --- .../bungeecore/commands/EventRescheduleCommand.java | 9 +++++---- src/de/steamwar/messages/BungeeCore.properties | 6 ++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/EventRescheduleCommand.java b/src/de/steamwar/bungeecore/commands/EventRescheduleCommand.java index e17d6c15..9f2fac44 100644 --- a/src/de/steamwar/bungeecore/commands/EventRescheduleCommand.java +++ b/src/de/steamwar/bungeecore/commands/EventRescheduleCommand.java @@ -20,6 +20,7 @@ package de.steamwar.bungeecore.commands; import de.steamwar.bungeecore.BungeeCore; +import de.steamwar.bungeecore.Message; import de.steamwar.bungeecore.sql.Event; import de.steamwar.bungeecore.sql.EventFight; import de.steamwar.bungeecore.sql.Team; @@ -44,7 +45,7 @@ public class EventRescheduleCommand extends BasicCommand { ProxiedPlayer player = (ProxiedPlayer) sender; if(args.length != 2){ - BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§c/eventreschedule [Team1 (Blue)] [Team2 (Red)]"); + Message.send("EVENTRESCHEDULE_SYNTAX", player); return; } @@ -52,7 +53,7 @@ public class EventRescheduleCommand extends BasicCommand { Team teamRed = Team.get(args[1]); Event event = Event.get(); if(teamBlue == null || teamRed == null || event == null){ - BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§cEin Team ist unbekannt / Derzeit kein Event"); + Message.send("EVENTRESCHEDULE_UNKNOWN_TEAM", player); return; } @@ -65,13 +66,13 @@ public class EventRescheduleCommand extends BasicCommand { continue; if(fight.getTeamBlue() == teamBlue.getTeamId() && fight.getTeamRed() == teamRed.getTeamId()){ - BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§aKampf startet in 30s"); + Message.send("EVENTRESCHEDULE_STARTING", player); fight.reschedule(); EventFight.loadAllComingFights(); return; } } - BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§cKein Kampf zwischen den Teams gefunden"); + Message.send("EVENTRESCHEDULE_NO_FIGHT", player); } } diff --git a/src/de/steamwar/messages/BungeeCore.properties b/src/de/steamwar/messages/BungeeCore.properties index 4867c697..7f4d6e7e 100644 --- a/src/de/steamwar/messages/BungeeCore.properties +++ b/src/de/steamwar/messages/BungeeCore.properties @@ -170,6 +170,12 @@ EVENT_CURRENT_FIGHT=§7{0} §{1}{2}§8 vs §{3}{4} EVENT_CURRENT_FIGHT_WIN=§8: §7Sieg §{0}{1} EVENT_CURRENT_FIGHT_DRAW=§8: §7Unentschieden +#EventRescheduleCommand +EVENTRESCHEDULE_SYNTAX=§c/eventreschedule [Team1 (Blue)] [Team2 (Red)] +EVENTRESCHEDULE_UNKNOWN_TEAM=§cEin Team ist unbekannt / Derzeit kein Event +EVENTRESCHEDULE_NO_FIGHT="§cKein Kampf zwischen den Teams gefunden" +EVENTRESCHEDULE_STARTING=§aKampf startet in 30s + #CheckCommand CHECK_REMINDER=§7Es sind §e{0} §7Schematics zu prüfen§8! CHECK_NOT_CHECKING=§cDu prüfst derzeit nicht.