mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 20:16:36 -04:00
Allow custom whitelist messages
This commit is contained in:
parent
6e279952ff
commit
c0ee86e126
@ -39,7 +39,7 @@ namespace MCGalaxy.Core {
|
||||
if (!CheckTempban(p)) return false;
|
||||
|
||||
if (Server.Config.WhitelistedOnly && !Server.whiteList.Contains(p.name)) {
|
||||
p.Leave(null, "This is a private server!", true);
|
||||
p.Leave(null, Server.Config.DefaultWhitelistMessage, true);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -237,6 +237,8 @@ namespace MCGalaxy {
|
||||
public string DefaultDemoteMessage = "&4DEMOTED! &6We're sorry for your loss. Good luck on your future endeavors! &1:'(";
|
||||
[ConfigString("custom-restart-message", "Messages", "Server restarted. Sign in again and rejoin.")]
|
||||
public string DefaultRestartMessage = "Server restarted. Sign in again and rejoin.";
|
||||
[ConfigString("custom-whitelist-message", "Messages", "This is a private server!")]
|
||||
public string DefaultWhitelistMessage = "This is a private server!";
|
||||
|
||||
static readonly bool[] defLogLevels = new bool[] {
|
||||
true,true,true,true,true,true, true,true,true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user