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 _lastCoinCount = 0;
|
||||
|
||||
public HubClient(String name)
|
||||
{
|
||||
ScoreboardString = " Welcome " + name + ", to the Mineplex Network!";
|
||||
@ -133,14 +131,4 @@ public class HubClient
|
||||
|
||||
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 String _serverName = "";
|
||||
|
||||
private int _lastPlayerCount = 0;
|
||||
private boolean _shuttingDown;
|
||||
|
||||
private HashMap<String, Long> _portalTime = new HashMap<String, Long>();
|
||||
@ -719,15 +719,14 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
||||
//Space
|
||||
obj.getScore(" ").setScore(line--);
|
||||
|
||||
//Coins
|
||||
obj.getScore(C.cYellow + C.Bold + "Coins").setScore(line--);
|
||||
//Players
|
||||
obj.getScore(C.cYellow + C.Bold + "Players").setScore(line--);
|
||||
|
||||
// Remove Old
|
||||
player.getScoreboard().resetScores(Get(player.getName()).GetLastCoinCount() + "");
|
||||
// Add New
|
||||
obj.getScore(GetDonation().Get(player.getName()).getCoins() + "").setScore(line--);
|
||||
player.getScoreboard().resetScores(_lastPlayerCount + "");
|
||||
|
||||
Get(player.getName()).SetLastCoinCount(GetDonation().Get(player.getName()).getCoins());
|
||||
_lastPlayerCount++;
|
||||
|
||||
obj.getScore(_lastPlayerCount + "").setScore(line--);
|
||||
|
||||
|
||||
//Space
|
||||
|
@ -65,7 +65,7 @@ public class HubVisibilityManager extends MiniPlugin
|
||||
{
|
||||
boolean hideMe = Manager.GetTutorial().InTutorial(player) ||
|
||||
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);
|
||||
|
||||
for (Player other : UtilServer.getPlayers())
|
||||
|
Loading…
Reference in New Issue
Block a user