Dieser Commit ist enthalten in:
Ursprung
8a21d5c93d
Commit
7236885590
@ -20,20 +20,18 @@
|
|||||||
package de.steamwar.bungeecore.commands;
|
package de.steamwar.bungeecore.commands;
|
||||||
|
|
||||||
import de.steamwar.bungeecore.listeners.ChatListener;
|
import de.steamwar.bungeecore.listeners.ChatListener;
|
||||||
|
import de.steamwar.command.SWCommand;
|
||||||
import net.md_5.bungee.api.CommandSender;
|
import net.md_5.bungee.api.CommandSender;
|
||||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||||
|
|
||||||
public class LocalCommand extends BasicCommand {
|
public class LocalCommand extends SWCommand {
|
||||||
|
|
||||||
public LocalCommand() {
|
public LocalCommand() {
|
||||||
super("local", null, "bc", "bauchat");
|
super("local", null, "bc", "bauchat");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Register
|
||||||
public void execute(CommandSender sender, String[] args) {
|
public void genericCommand(ProxiedPlayer player, String... message) {
|
||||||
if(!(sender instanceof ProxiedPlayer))
|
ChatListener.localChat(player, String.join(" ", message));
|
||||||
return;
|
|
||||||
|
|
||||||
ChatListener.localChat((ProxiedPlayer) sender, String.join(" ", args));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren