LunaChat v3.0.1 : Added BungeePerms co-operation. #170
このコミットが含まれているのは:
1 親
4e0c3e50e3
コミット
4a5bc4ccfa
5ファイル変更
+104
-13
検索条件に一致するファイルはありません
@@ -21,6 +21,7 @@ import com.github.ucchyocean.lc3.LunaChatBungee;
|
||||
import com.github.ucchyocean.lc3.LunaChatConfig;
|
||||
import com.github.ucchyocean.lc3.Messages;
|
||||
import com.github.ucchyocean.lc3.Utility;
|
||||
import com.github.ucchyocean.lc3.bridge.BungeePermsBridge;
|
||||
import com.github.ucchyocean.lc3.channel.Channel;
|
||||
import com.github.ucchyocean.lc3.event.EventResult;
|
||||
import com.github.ucchyocean.lc3.japanize.Japanizer;
|
||||
@@ -412,9 +413,16 @@ public class BungeeEventListener implements Listener {
|
||||
}
|
||||
|
||||
if ( format.contains("%prefix") || format.contains("%suffix") ) {
|
||||
// TODO 未実装
|
||||
format = format.replace("%prefix", "");
|
||||
format = format.replace("%suffix", "");
|
||||
|
||||
String prefix = "";
|
||||
String suffix = "";
|
||||
BungeePermsBridge bungeeperms = LunaChatBungee.getInstance().getBungeePerms();
|
||||
if ( bungeeperms != null ) {
|
||||
prefix = bungeeperms.userPrefix(player.getUniqueId().toString(), null, null);
|
||||
suffix = bungeeperms.userSuffix(player.getUniqueId().toString(), null, null);
|
||||
}
|
||||
format = format.replace("%prefix", prefix);
|
||||
format = format.replace("%suffix", suffix);
|
||||
}
|
||||
|
||||
if ( format.contains("%world") ) {
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする