Merge branch 'clans-beta' of ssh://184.154.0.242:7999/min/Mineplex into clans-beta
This commit is contained in:
commit
c501a42094
@ -119,7 +119,7 @@ public class Clans extends JavaPlugin
|
||||
new CustomTagFix(this, packetHandler);
|
||||
GearManager customGear = new GearManager(this, packetHandler, _clientManager, _donationManager);
|
||||
|
||||
HologramManager hologram = new HologramManager(this);
|
||||
HologramManager hologram = new HologramManager(this, packetHandler);
|
||||
_clansManager = new ClansManager(this, serverStatusManager.getCurrentServerName(), packetHandler, _clientManager, _donationManager, preferenceManager, blockRestore, teleport, chat, customGear, hologram, webServerAddress);
|
||||
new Recipes(this);
|
||||
new Farming(this);
|
||||
|
@ -32,7 +32,7 @@ public class ClansServerPage extends ShopPageBase<ServerManager, ClansServerShop
|
||||
public ClansServerPage(ServerManager plugin, ClansServerShop shop, CoreClientManager clientManager,
|
||||
DonationManager donationManager, Player player, ClanRepository repository)
|
||||
{
|
||||
super(plugin, shop, clientManager, donationManager, "Clans", player, 27);
|
||||
super(plugin, shop, clientManager, donationManager, "Clans Alpha", player, 27);
|
||||
|
||||
_repository = repository;
|
||||
_accountId = clientManager.getAccountId(player);
|
||||
@ -64,10 +64,10 @@ public class ClansServerPage extends ShopPageBase<ServerManager, ClansServerShop
|
||||
{
|
||||
buildJoinHomeServer(clan);
|
||||
|
||||
if (isLeader(clan))
|
||||
{
|
||||
buildMoveClan(clan);
|
||||
}
|
||||
// if (isLeader(clan))
|
||||
// {
|
||||
// buildMoveClan(clan);
|
||||
// }
|
||||
}
|
||||
|
||||
private void buildNoClanPage()
|
||||
@ -93,25 +93,29 @@ public class ClansServerPage extends ShopPageBase<ServerManager, ClansServerShop
|
||||
boolean serverOnline = (serverInfo != null);
|
||||
String serverStatus = serverOnline ? C.cGreen + "Online" : C.cRed + "Offline";
|
||||
|
||||
String title = C.cRed + C.Bold + "Join Home Server!";
|
||||
String description = C.cGold + "Join your home server, " + C.cAqua + clan.getHomeServer() + C.cGold + "!";
|
||||
String serverDesc = C.cGold + "Server Status: " + serverStatus + C.cGold + "!";
|
||||
ShopItem shopItem = new ShopItem(Material.EMERALD_BLOCK, title, new String[] {" ", description, serverDesc, " "}, 0, true, true);
|
||||
String title = (serverOnline ? C.cGreen : C.cRed) + C.Bold + "Join Home Server!";
|
||||
// String description = C.cGold + "Join your home server, " + C.cAqua + clan.getHomeServer() + C.cGold + "!";
|
||||
String serverDesc = C.cYellow + "Server Status " + serverStatus;
|
||||
String players = (serverOnline ? C.cYellow + "Players " + C.cWhite + serverInfo.CurrentPlayers + "/" + serverInfo.MaxPlayers : "" );
|
||||
String change = C.cWhite + "You must leave your clan to change";
|
||||
String change2 = C.cWhite + "your clans home server!";
|
||||
ShopItem shopItem = new ShopItem(Material.EMERALD_BLOCK, title, new String[] {" ", serverDesc, players, " ", change, change2, " "}, 0, true, true);
|
||||
addButton(13, shopItem, new JoinServerButton(this, getPlugin(), getServerInfo(clan.getHomeServer()), getPlayer()));
|
||||
}
|
||||
|
||||
private void buildJoinServer(int slot, ServerInfo server)
|
||||
{
|
||||
String title = C.cRed + C.Bold + "Join Clans Server!";
|
||||
String desc1 = C.cGold + "Name: " + C.cAqua + server.Name;
|
||||
String desc2 = C.cGold + "Players: " + C.cAqua + server.CurrentPlayers + "/" + server.MaxPlayers;
|
||||
String desc3 = C.Bold + C.cRed + "Note: " + ChatColor.RESET + C.cGray + "Creating a clan on this";
|
||||
String desc4 = C.cGray + "server will set your home server!";
|
||||
String title = C.cGreen + C.Bold + "Join Clans Server!";
|
||||
String desc1 = C.cYellow + "Name " + C.cWhite + server.Name;
|
||||
String desc2 = C.cYellow + "Players " + C.cWhite + server.CurrentPlayers + "/" + server.MaxPlayers;
|
||||
String desc3 = C.cWhite + "Creating or Joining a clan on this";
|
||||
String desc4 = C.cWhite + "server will set your home server!";
|
||||
|
||||
ShopItem shopItem = new ShopItem(Material.GOLD_BLOCK, title, new String[] {" ", desc1, desc2, " ", desc3, desc4}, 0, true, true);
|
||||
addButton(slot, shopItem, new JoinServerButton(this, getPlugin(), server, getPlayer()));
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
private void buildMoveClan(final SimpleClanToken clan)
|
||||
{
|
||||
// Build button for moving clan to another server
|
||||
@ -139,6 +143,7 @@ public class ClansServerPage extends ShopPageBase<ServerManager, ClansServerShop
|
||||
|
||||
addButton(26, shopItem, button);
|
||||
}
|
||||
*/
|
||||
|
||||
private ServerInfo getServerInfo(String serverName)
|
||||
{
|
||||
|
@ -24,7 +24,7 @@ public class ClansServerShop extends ShopBase<ServerManager>
|
||||
|
||||
public ClansServerShop(ServerManager plugin, CoreClientManager clientManager, DonationManager donationManager)
|
||||
{
|
||||
super(plugin, clientManager, donationManager, "Clans");
|
||||
super(plugin, clientManager, donationManager, "Clans Alpha");
|
||||
|
||||
_repository = new ClanRepository(plugin.getPlugin(), plugin.getStatusManager().getCurrentServerName());
|
||||
}
|
||||
|
@ -2174,16 +2174,12 @@ public class MineStrike extends TeamGame
|
||||
|
||||
//Incendiary
|
||||
_incendiary.clear();
|
||||
<<<<<<< HEAD
|
||||
Manager.GetBlockRestore().restoreAll();
|
||||
=======
|
||||
Manager.GetBlockRestore().RestoreAll();
|
||||
|
||||
|
||||
//Smoke
|
||||
for (Block block : _smokeBlocks.keySet())
|
||||
block.setType(Material.AIR);
|
||||
_smokeBlocks.clear();
|
||||
>>>>>>> master
|
||||
|
||||
//Restock Ammo
|
||||
for (Gun gun : _gunsEquipped.keySet())
|
||||
|
@ -42,19 +42,15 @@ public class Smoke extends Grenade
|
||||
{
|
||||
// UtilParticle.PlayParticle(ParticleType.HUGE_EXPLOSION, ent.getLocation(), 0.3f, 0.3f, 0.3f, 0, 1,
|
||||
// ViewDist.MAX, UtilServer.getPlayers());
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
UtilParticle.PlayParticle(ParticleType.CLOUD, ent.getLocation(), 1.5f, 1.5f, 1.5f, 0, 100,
|
||||
ViewDist.MAX, UtilServer.getPlayers());
|
||||
|
||||
|
||||
|
||||
ent.getWorld().playSound(ent.getLocation(), Sound.FIZZ, 0.1f, 0.1f);
|
||||
|
||||
for (Location loc : game.Manager.GetBlockRestore().restoreBlockAround(Material.FIRE, ent.getLocation(), 5))
|
||||
=======
|
||||
|
||||
//Remove Fire
|
||||
for (Location loc : game.Manager.GetBlockRestore().RestoreBlockAround(Material.FIRE, ent.getLocation(), 5))
|
||||
>>>>>>> master
|
||||
for (Location loc : game.Manager.GetBlockRestore().restoreBlockAround(Material.FIRE, ent.getLocation(), 5))
|
||||
{
|
||||
loc.getWorld().playSound(loc, Sound.FIZZ, 1f, 1f);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user