mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
Add toggle to disable event information on player join
This commit is contained in:
@ -569,4 +569,5 @@ public class Config extends AutoUpdateConfigLoader {
|
||||
//public float getMasterVolume() { return (float) config.getDouble("Sounds.MasterVolume", 1.0); }
|
||||
|
||||
public boolean broadcastEventMessages() { return config.getBoolean("General.EventBroadcasts", true);}
|
||||
public boolean playerJoinEventInfo() { return config.getBoolean("General.EventInfoOnPlayerJoin", true);}
|
||||
}
|
||||
|
@ -529,7 +529,7 @@ public class PlayerListener implements Listener {
|
||||
Motd.displayAll(player);
|
||||
}
|
||||
|
||||
if (plugin.isXPEventEnabled()) {
|
||||
if (plugin.isXPEventEnabled() && Config.getInstance().playerJoinEventInfo()) {
|
||||
player.sendMessage(LocaleLoader.getString("XPRate.Event", ExperienceConfig.getInstance().getExperienceGainsGlobalMultiplier()));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user