mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-05 18:09:37 +01:00
Add nick-prefix.owner option
This commit is contained in:
parent
764c783ee7
commit
5071014d7f
@ -651,7 +651,7 @@ public final class PurpleBot {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
public void asyncJoinChannel(final String channelName) {
|
||||
if (!this.isConnected()) {
|
||||
return;
|
||||
@ -866,7 +866,7 @@ public final class PurpleBot {
|
||||
|
||||
// load tailer settings
|
||||
tailerEnabled = config.getBoolean("file-tailer.enabled", false);
|
||||
|
||||
|
||||
joinOnKick = config.getBoolean("join-on-kick", true);
|
||||
|
||||
String tailerFile = config.getString("file-tailer.file", "server.log");
|
||||
@ -2395,6 +2395,8 @@ public final class PurpleBot {
|
||||
if (user.getChannels() != null) {
|
||||
if (user.isIrcop()) {
|
||||
return plugin.ircNickPrefixIrcOp;
|
||||
} else if (user.getChannelsOwnerIn().contains(channel)) {
|
||||
return plugin.ircNickPrefixOwner;
|
||||
} else if (user.getChannelsSuperOpIn().contains(channel)) {
|
||||
return plugin.ircNickPrefixSuperOp;
|
||||
} else if (user.getChannelsOpIn().contains(channel)) {
|
||||
|
@ -143,6 +143,7 @@ public class PurpleIRC extends JavaPlugin {
|
||||
listSeparator,
|
||||
listPlayer,
|
||||
ircNickPrefixIrcOp,
|
||||
ircNickPrefixOwner,
|
||||
ircNickPrefixSuperOp,
|
||||
ircNickPrefixOp,
|
||||
ircNickPrefixHalfOp,
|
||||
@ -692,6 +693,7 @@ public class PurpleIRC extends JavaPlugin {
|
||||
defaultPlayerWorld = ChatColor.translateAlternateColorCodes('&', getConfig().getString(msgFormatSection + ".default-player-world", ""));
|
||||
|
||||
ircNickPrefixIrcOp = ChatColor.translateAlternateColorCodes('&', getConfig().getString("nick-prefixes.ircop", "~"));
|
||||
ircNickPrefixOwner = ChatColor.translateAlternateColorCodes('&', getConfig().getString("nick-prefixes.owner", "@"));
|
||||
ircNickPrefixSuperOp = ChatColor.translateAlternateColorCodes('&', getConfig().getString("nick-prefixes.ircsuperop", "&&"));
|
||||
ircNickPrefixOp = ChatColor.translateAlternateColorCodes('&', getConfig().getString("nick-prefixes.op", "@"));
|
||||
ircNickPrefixHalfOp = ChatColor.translateAlternateColorCodes('&', getConfig().getString("nick-prefixes.halfop", "%"));
|
||||
|
@ -322,6 +322,7 @@ nick-exact-match: true
|
||||
# IRC nick prefixes (can include & color codes)
|
||||
nick-prefixes:
|
||||
ircop: '&4~'
|
||||
owner: '&5@'
|
||||
ircsuperop: '&6&&'
|
||||
op: '&c@'
|
||||
halfop: '&3%'
|
||||
|
Loading…
Reference in New Issue
Block a user