Add nick-prefix.owner option

This commit is contained in:
cnaude 2016-05-24 07:28:56 -07:00
parent 764c783ee7
commit 5071014d7f
3 changed files with 7 additions and 2 deletions

View File

@ -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)) {

View File

@ -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", "%"));

View File

@ -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%'