Dieser Commit ist enthalten in:
Ursprung
8530ffc438
Commit
75ee59810f
@ -43,6 +43,8 @@ sourceSets {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'com.viaversion:viaversion-api:4.3.1'
|
||||
|
||||
compileOnly project(":SpigotCore_Main")
|
||||
compileOnly project(":SpigotCore_8")
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
package de.steamwar.core;
|
||||
|
||||
import com.comphenix.tinyprotocol.Reflection;
|
||||
import com.viaversion.viaversion.api.Via;
|
||||
import net.md_5.bungee.api.ChatMessageType;
|
||||
import net.md_5.bungee.api.chat.BaseComponent;
|
||||
import org.bukkit.Sound;
|
||||
@ -36,6 +37,9 @@ public class BountifulWrapper9 implements BountifulWrapper.IBountifulWrapper {
|
||||
|
||||
@Override
|
||||
public void sendMessage(Player player, ChatMessageType type, BaseComponent... msg) {
|
||||
if(type == ChatMessageType.CHAT && Via.getAPI().getPlayerVersion(player.getUniqueId()) >= 759)
|
||||
type = ChatMessageType.SYSTEM;
|
||||
|
||||
player.spigot().sendMessage(type, msg);
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren