Dieser Commit ist enthalten in:
Ursprung
acb7aa1efb
Commit
8191c134c7
@ -19,7 +19,10 @@
|
|||||||
|
|
||||||
package de.steamwar.bungeecore.listeners;
|
package de.steamwar.bungeecore.listeners;
|
||||||
|
|
||||||
import de.steamwar.bungeecore.*;
|
import de.steamwar.bungeecore.BungeeCore;
|
||||||
|
import de.steamwar.bungeecore.Message;
|
||||||
|
import de.steamwar.bungeecore.Servertype;
|
||||||
|
import de.steamwar.bungeecore.Subserver;
|
||||||
import de.steamwar.bungeecore.bot.SteamwarDiscordBot;
|
import de.steamwar.bungeecore.bot.SteamwarDiscordBot;
|
||||||
import de.steamwar.bungeecore.commands.TpCommand;
|
import de.steamwar.bungeecore.commands.TpCommand;
|
||||||
import de.steamwar.bungeecore.comms.packets.PingPacket;
|
import de.steamwar.bungeecore.comms.packets.PingPacket;
|
||||||
@ -33,8 +36,6 @@ import net.md_5.bungee.api.event.TabCompleteResponseEvent;
|
|||||||
import net.md_5.bungee.api.scheduler.TaskScheduler;
|
import net.md_5.bungee.api.scheduler.TaskScheduler;
|
||||||
import net.md_5.bungee.event.EventHandler;
|
import net.md_5.bungee.event.EventHandler;
|
||||||
|
|
||||||
import java.sql.Timestamp;
|
|
||||||
import java.time.Instant;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
@ -124,15 +125,14 @@ public class ChatListener extends BasicListener {
|
|||||||
private void onPlusMessage(ChatEvent e) {
|
private void onPlusMessage(ChatEvent e) {
|
||||||
ProxiedPlayer p = (ProxiedPlayer) e.getSender();
|
ProxiedPlayer p = (ProxiedPlayer) e.getSender();
|
||||||
Subserver subserver = Subserver.getSubserver(p);
|
Subserver subserver = Subserver.getSubserver(p);
|
||||||
if(subserver instanceof Bauserver) {
|
if(subserver != null && subserver.getType() == Servertype.ARENA && subserver.getServer() == ((ProxiedPlayer) e.getSender()).getServer().getInfo()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
String[] smolArgs = e.getMessage().substring(1).split(" ");
|
String[] smolArgs = e.getMessage().substring(1).split(" ");
|
||||||
String[] args = new String[smolArgs.length + 1];
|
String[] args = new String[smolArgs.length + 1];
|
||||||
args[0] = "";
|
args[0] = "";
|
||||||
System.arraycopy(smolArgs, 0, args, 1, smolArgs.length);
|
System.arraycopy(smolArgs, 0, args, 1, smolArgs.length);
|
||||||
localChat(e, args);
|
localChat(e, args);
|
||||||
} else {
|
|
||||||
onChat(e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onChat(ChatEvent e){
|
private void onChat(ChatEvent e){
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren