mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-25 06:53:37 +00:00
Add chat configurables.
This commit is contained in:
parent
f272a7ecd6
commit
0e6a5240db
4 changed files with 43 additions and 7 deletions
|
@ -94,6 +94,34 @@ public class Settings implements net.ess3.api.ISettings
|
|||
{
|
||||
return chatRadius;
|
||||
}
|
||||
|
||||
// #easteregg
|
||||
private char chatShout = '!';
|
||||
|
||||
private char _getChatShout()
|
||||
{
|
||||
return config.getString("chat.shout", "!").charAt(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public char getChatShout()
|
||||
{
|
||||
return chatShout;
|
||||
}
|
||||
|
||||
// #easteregg
|
||||
private char chatQuestion = '?';
|
||||
|
||||
private char _getChatQuestion()
|
||||
{
|
||||
return config.getString("chat.question", "?").charAt(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public char getChatQuestion()
|
||||
{
|
||||
return chatQuestion;
|
||||
}
|
||||
|
||||
private boolean teleportSafety;
|
||||
|
||||
|
@ -524,6 +552,8 @@ public class Settings implements net.ess3.api.ISettings
|
|||
disablePrefix = _disablePrefix();
|
||||
disableSuffix = _disableSuffix();
|
||||
chatRadius = _getChatRadius();
|
||||
chatShout = _getChatShout();
|
||||
chatQuestion = _getChatQuestion();
|
||||
commandCosts = _getCommandCosts();
|
||||
socialSpyCommands = _getSocialSpyCommands();
|
||||
warnOnBuildDisallow = _warnOnBuildDisallow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue