mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Added config value to enable/disable power level display w/ Spout
This commit is contained in:
parent
c189a6b489
commit
3b0ba43e94
@ -132,7 +132,8 @@ public class LoadProperties extends ConfigLoader{
|
|||||||
* SPOUT SETTINGS
|
* SPOUT SETTINGS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public static Boolean spoutEnabled;
|
public static boolean spoutEnabled;
|
||||||
|
public static boolean showPowerLevel;
|
||||||
|
|
||||||
/* Spout Party HUD */
|
/* Spout Party HUD */
|
||||||
public static Boolean showDisplayName, showFaces, partybar;
|
public static Boolean showDisplayName, showFaces, partybar;
|
||||||
@ -213,6 +214,8 @@ public class LoadProperties extends ConfigLoader{
|
|||||||
showDisplayName = config.getBoolean("Spout.Party.HUD.Show_Display_Name", false);
|
showDisplayName = config.getBoolean("Spout.Party.HUD.Show_Display_Name", false);
|
||||||
partybar = config.getBoolean("Spout.Party.HUD.Enabled", true);
|
partybar = config.getBoolean("Spout.Party.HUD.Enabled", true);
|
||||||
|
|
||||||
|
showPowerLevel = config.getBoolean("Spout.HUD.Show_Power_Level", true);
|
||||||
|
|
||||||
acrobatics_r = config.getDouble("Spout.HUD.Retro.Colors.Acrobatics.RED", 0.3);
|
acrobatics_r = config.getDouble("Spout.HUD.Retro.Colors.Acrobatics.RED", 0.3);
|
||||||
acrobatics_g = config.getDouble("Spout.HUD.Retro.Colors.Acrobatics.GREEN", 0.3);
|
acrobatics_g = config.getDouble("Spout.HUD.Retro.Colors.Acrobatics.GREEN", 0.3);
|
||||||
acrobatics_b = config.getDouble("Spout.HUD.Retro.Colors.Acrobatics.BLUE", 0.75);
|
acrobatics_b = config.getDouble("Spout.HUD.Retro.Colors.Acrobatics.BLUE", 0.75);
|
||||||
|
@ -7,6 +7,7 @@ import org.getspout.spoutapi.player.SpoutPlayer;
|
|||||||
|
|
||||||
import com.gmail.nossr50.Users;
|
import com.gmail.nossr50.Users;
|
||||||
import com.gmail.nossr50.mcMMO;
|
import com.gmail.nossr50.mcMMO;
|
||||||
|
import com.gmail.nossr50.config.LoadProperties;
|
||||||
import com.gmail.nossr50.datatypes.HUDmmo;
|
import com.gmail.nossr50.datatypes.HUDmmo;
|
||||||
import com.gmail.nossr50.datatypes.PlayerProfile;
|
import com.gmail.nossr50.datatypes.PlayerProfile;
|
||||||
import com.gmail.nossr50.spout.SpoutStuff;
|
import com.gmail.nossr50.spout.SpoutStuff;
|
||||||
@ -32,7 +33,10 @@ public class mcSpoutListener implements Listener {
|
|||||||
SpoutStuff.playerHUDs.put(sPlayer, new HUDmmo(sPlayer)); //Setup Party HUD stuff
|
SpoutStuff.playerHUDs.put(sPlayer, new HUDmmo(sPlayer)); //Setup Party HUD stuff
|
||||||
PlayerProfile PPs = Users.getProfile(sPlayer);
|
PlayerProfile PPs = Users.getProfile(sPlayer);
|
||||||
PPs.toggleSpoutEnabled();
|
PPs.toggleSpoutEnabled();
|
||||||
sPlayer.setTitle(String.valueOf(PPs.getPowerLevel()));
|
|
||||||
|
if (LoadProperties.showPowerLevel) {
|
||||||
|
sPlayer.setTitle(String.valueOf(PPs.getPowerLevel()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -340,6 +340,7 @@ Spout:
|
|||||||
Enabled: true
|
Enabled: true
|
||||||
Show_Display_Name: false
|
Show_Display_Name: false
|
||||||
HUD:
|
HUD:
|
||||||
|
Show_Power_Level: true
|
||||||
Default: STANDARD
|
Default: STANDARD
|
||||||
Retro:
|
Retro:
|
||||||
Colors:
|
Colors:
|
||||||
|
Loading…
Reference in New Issue
Block a user