geforkt von SteamWar/BungeeCore
Fix 3 things
Dieser Commit ist enthalten in:
Ursprung
9dd3cb7697
Commit
87db98a310
@ -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()) {
|
||||||
|
@ -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))
|
||||||
|
@ -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();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren