fixed old staff being stuck invis.
partially changed scoreboard to show playercount
This commit is contained in:
parent
a39b11ce67
commit
4ba2e8c96c
@ -23,8 +23,6 @@ public class HubClient
|
|||||||
|
|
||||||
private int _lastGemCount = 0;
|
private int _lastGemCount = 0;
|
||||||
|
|
||||||
private int _lastCoinCount = 0;
|
|
||||||
|
|
||||||
public HubClient(String name)
|
public HubClient(String name)
|
||||||
{
|
{
|
||||||
ScoreboardString = " Welcome " + name + ", to the Mineplex Network!";
|
ScoreboardString = " Welcome " + name + ", to the Mineplex Network!";
|
||||||
@ -133,14 +131,4 @@ public class HubClient
|
|||||||
|
|
||||||
return display;
|
return display;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetLastCoinCount(int coins)
|
|
||||||
{
|
|
||||||
_lastCoinCount = coins;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetLastCoinCount()
|
|
||||||
{
|
|
||||||
return _lastCoinCount;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -165,7 +165,7 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
|||||||
private HashMap<Player, Scoreboard> _scoreboards = new HashMap<Player, Scoreboard>();
|
private HashMap<Player, Scoreboard> _scoreboards = new HashMap<Player, Scoreboard>();
|
||||||
|
|
||||||
private String _serverName = "";
|
private String _serverName = "";
|
||||||
|
private int _lastPlayerCount = 0;
|
||||||
private boolean _shuttingDown;
|
private boolean _shuttingDown;
|
||||||
|
|
||||||
private HashMap<String, Long> _portalTime = new HashMap<String, Long>();
|
private HashMap<String, Long> _portalTime = new HashMap<String, Long>();
|
||||||
@ -719,15 +719,14 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
|||||||
//Space
|
//Space
|
||||||
obj.getScore(" ").setScore(line--);
|
obj.getScore(" ").setScore(line--);
|
||||||
|
|
||||||
//Coins
|
//Players
|
||||||
obj.getScore(C.cYellow + C.Bold + "Coins").setScore(line--);
|
obj.getScore(C.cYellow + C.Bold + "Players").setScore(line--);
|
||||||
|
|
||||||
// Remove Old
|
player.getScoreboard().resetScores(_lastPlayerCount + "");
|
||||||
player.getScoreboard().resetScores(Get(player.getName()).GetLastCoinCount() + "");
|
|
||||||
// Add New
|
|
||||||
obj.getScore(GetDonation().Get(player.getName()).getCoins() + "").setScore(line--);
|
|
||||||
|
|
||||||
Get(player.getName()).SetLastCoinCount(GetDonation().Get(player.getName()).getCoins());
|
_lastPlayerCount++;
|
||||||
|
|
||||||
|
obj.getScore(_lastPlayerCount + "").setScore(line--);
|
||||||
|
|
||||||
|
|
||||||
//Space
|
//Space
|
||||||
|
@ -65,7 +65,7 @@ public class HubVisibilityManager extends MiniPlugin
|
|||||||
{
|
{
|
||||||
boolean hideMe = Manager.GetTutorial().InTutorial(player) ||
|
boolean hideMe = Manager.GetTutorial().InTutorial(player) ||
|
||||||
UtilMath.offset2d(player.getLocation(), Manager.GetSpawn()) == 0 ||
|
UtilMath.offset2d(player.getLocation(), Manager.GetSpawn()) == 0 ||
|
||||||
Manager.getPreferences().Get(player).Invisibility ||
|
(Manager.getPreferences().Get(player).Invisibility && Manager.GetClients().Get(player).GetRank().has(Rank.MODERATOR)) ||
|
||||||
_hiddenPlayers.contains(player);
|
_hiddenPlayers.contains(player);
|
||||||
|
|
||||||
for (Player other : UtilServer.getPlayers())
|
for (Player other : UtilServer.getPlayers())
|
||||||
|
Loading…
Reference in New Issue
Block a user