mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-18 12:31:26 +02:00
Disabling player list updates by default (can mess with tab completion)
Hopefully this will be reverted if/when patch is found.
This commit is contained in:
@@ -128,6 +128,8 @@ public interface ISettings extends IConf
|
|||||||
|
|
||||||
boolean changeDisplayName();
|
boolean changeDisplayName();
|
||||||
|
|
||||||
|
boolean changePlayerListName();
|
||||||
|
|
||||||
boolean isPlayerCommand(String string);
|
boolean isPlayerCommand(String string);
|
||||||
|
|
||||||
boolean useBukkitPermissions();
|
boolean useBukkitPermissions();
|
||||||
|
@@ -610,6 +610,12 @@ public class Settings implements ISettings
|
|||||||
return config.getBoolean("change-displayname", true);
|
return config.getBoolean("change-displayname", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean changePlayerListName()
|
||||||
|
{
|
||||||
|
return config.getBoolean("change-playerlist", false);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean useBukkitPermissions()
|
public boolean useBukkitPermissions()
|
||||||
{
|
{
|
||||||
|
@@ -328,6 +328,8 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
|||||||
{
|
{
|
||||||
name = Util.stripFormat(name);
|
name = Util.stripFormat(name);
|
||||||
}
|
}
|
||||||
|
if (ess.getSettings().changePlayerListName())
|
||||||
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
setPlayerListName(name);
|
setPlayerListName(name);
|
||||||
@@ -341,6 +343,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getDisplayName()
|
public String getDisplayName()
|
||||||
|
@@ -33,6 +33,9 @@ nickname-prefix: '~'
|
|||||||
# Disable this if you have any other plugin, that modifies the displayname of a user.
|
# Disable this if you have any other plugin, that modifies the displayname of a user.
|
||||||
change-displayname: true
|
change-displayname: true
|
||||||
|
|
||||||
|
# When this option is enabled, the (tab) player list will be updated with nicknames and colours.
|
||||||
|
#change-playerlist: true
|
||||||
|
|
||||||
# Adds the prefix and suffix to the displayname of the player, so it will be displayed in messages and lists.
|
# Adds the prefix and suffix to the displayname of the player, so it will be displayed in messages and lists.
|
||||||
# The prefix/suffix can be set using Permissions, Group Manager or PermissionsEx.
|
# The prefix/suffix can be set using Permissions, Group Manager or PermissionsEx.
|
||||||
# The value of change-displayname (above) has to be true.
|
# The value of change-displayname (above) has to be true.
|
||||||
|
Reference in New Issue
Block a user