Add EventRescheduleCommand ML
Dieser Commit ist enthalten in:
Ursprung
1b77a53c85
Commit
5d23d36897
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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.
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren