SteamWar/BungeeCore
Archiviert
13
2

Fix 3 things
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2023-02-21 20:38:19 +01:00
Ursprung 9dd3cb7697
Commit 87db98a310
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -81,7 +81,7 @@ public class JoinmeCommand extends SWCommand {
} }
} }
@ClassMapper(ProxiedPlayer.class) @ClassValidator(ProxiedPlayer.class)
public TypeValidator<ProxiedPlayer> playerMapper() { public TypeValidator<ProxiedPlayer> playerMapper() {
return (sender, value, messageSender) -> { return (sender, value, messageSender) -> {
if (value == null || !value.isConnected()) { if (value == null || !value.isConnected()) {

Datei anzeigen

@ -445,7 +445,7 @@ public class TeamCommand extends SWCommand {
} }
@Register("event") @Register("event")
public void event(ProxiedPlayer player, String[] args){ public void event(ProxiedPlayer player, String... args){
SteamwarUser user = SteamwarUser.get(player.getUniqueId()); SteamwarUser user = SteamwarUser.get(player.getUniqueId());
Team team = Team.get(user.getTeam()); Team team = Team.get(user.getTeam());
if(notInTeam(player, user)) if(notInTeam(player, user))

Datei anzeigen

@ -32,7 +32,7 @@ public class TeamchatCommand extends SWCommand {
super("tc", "","teamchat"); super("tc", "","teamchat");
} }
@Register @Register(description = "TC_USAGE")
public void genericCommand(ProxiedPlayer player, @ErrorMessage(value = "TC_USAGE", allowEAs = false) String... args) { public void genericCommand(ProxiedPlayer player, @ErrorMessage(value = "TC_USAGE", allowEAs = false) String... args) {
ChatSender sender = ChatSender.of(player); ChatSender sender = ChatSender.of(player);
SteamwarUser user = sender.user(); SteamwarUser user = sender.user();