Type-Wars merge
This commit is contained in:
commit
c63014b51f
@ -23,6 +23,13 @@ public enum Achievement
|
||||
new int[]{200},
|
||||
AchievementCategory.HOLIDAY),
|
||||
|
||||
GLOBAL_PRESENT_HOARDER_2015("2015 Present Hoarder", 4000,
|
||||
new String[]{"Global.Christmas Presents 2015"},
|
||||
new String[]{"Open 200 Christmas Presents,",
|
||||
"during Christmas 2015!"},
|
||||
new int[]{200},
|
||||
AchievementCategory.HOLIDAY),
|
||||
|
||||
//Bridges
|
||||
BRIDGES_WINS("Bridge Champion", 600,
|
||||
new String[]{"The Bridges.Wins"},
|
||||
|
@ -23,7 +23,7 @@ public enum AchievementCategory
|
||||
|
||||
HOLIDAY("Holiday Achievements", null,
|
||||
new StatDisplay[] {},
|
||||
Material.PUMPKIN_PIE, 0, GameCategory.HOLIDAY, "None"),
|
||||
Material.CAKE, 0, GameCategory.HOLIDAY, "None"),
|
||||
|
||||
BRIDGES("The Bridges", null,
|
||||
new StatDisplay[] { StatDisplay.WINS, StatDisplay.GAMES_PLAYED, StatDisplay.KILLS, StatDisplay.DEATHS, StatDisplay.GEMS_EARNED },
|
||||
@ -157,7 +157,9 @@ public enum AchievementCategory
|
||||
|
||||
TYPE_WARS("Type Wars", null,
|
||||
new StatDisplay[] {StatDisplay.WINS, StatDisplay.GAMES_PLAYED, new StatDisplay("Minions killed", "MinionKills"), new StatDisplay("Words Per Minute", false, true, "MinionKills", "TimeInGame"), StatDisplay.GEMS_EARNED},
|
||||
Material.FEATHER, 0, GameCategory.ARCADE, null);
|
||||
Material.FEATHER, 0, GameCategory.CLASSICS, null);
|
||||
|
||||
|
||||
private String _name;
|
||||
private String[] _statsToPull;
|
||||
private StatDisplay[] _statDisplays;
|
||||
|
@ -49,7 +49,7 @@ public class AchievementMainPage extends ShopPageBase<AchievementManager, Achiev
|
||||
"XXXXOXXXO",
|
||||
"OXOXOXOXO",
|
||||
"OXOXOXOXO",
|
||||
"XXOXOXOXX").getItemSlots();
|
||||
"XOXOXOXOX").getItemSlots();
|
||||
int listSlot = 0;
|
||||
|
||||
for (AchievementCategory category : AchievementCategory.values())
|
||||
|
@ -70,7 +70,7 @@ public enum GameDisplay
|
||||
ChampionsCTF("Champions CTF", "Champions", Material.BANNER, DyeColor.RED.getDyeData(), GameCategory.CHAMPIONS, 56),
|
||||
BouncyBalls("Bouncy Balls", Material.SLIME_BALL, (byte)0, GameCategory.ARCADE, 57),
|
||||
Gladiators("Gladiators", Material.IRON_SWORD, (byte)0, GameCategory.ARCADE, 58),
|
||||
TypeWars("Type Wars", Material.NAME_TAG, (byte) 0, GameCategory.ARCADE, 59),
|
||||
TypeWars("Type Wars", Material.NAME_TAG, (byte) 0, GameCategory.CLASSICS, 59),
|
||||
|
||||
Event("Mineplex Event", Material.CAKE, (byte)0, GameCategory.EVENT, 999);
|
||||
|
||||
|
@ -219,11 +219,16 @@ public class MessageManager extends MiniClientPlugin<ClientMessage>
|
||||
Get(from).LastToTime = System.currentTimeMillis();
|
||||
|
||||
// Chiss or defek7
|
||||
if (to.getName().equals("Chiss") || to.getName().equals("defek7") || to.getName().equals("Phinary") || to.getName().equals("xXVevzZXx") || to.getName().equals("fooify") || to.getName().equals("sampepere"))
|
||||
if (to.getName().equals("Chiss") || to.getName().equals("defek7") || to.getName().equals("Phinary") || to.getName().equals("fooify") || to.getName().equals("sampepere"))
|
||||
{
|
||||
UtilPlayer.message(from, C.cPurple + to.getName() + " is often AFK or minimized, due to plugin development.");
|
||||
UtilPlayer.message(from, C.cPurple + "Please be patient if he does not reply instantly.");
|
||||
}
|
||||
if (to.getName().equals("xXVevzZXx"))
|
||||
{
|
||||
UtilPlayer.message(from, C.cPurple + to.getName() + " is often AFK or minimized, due to plugin development.");
|
||||
UtilPlayer.message(from, C.cPurple + "Please be patient if she does not reply instantly.");
|
||||
}
|
||||
|
||||
/*if(to.getName().equals("ishh"))
|
||||
{
|
||||
|
@ -571,7 +571,7 @@ public class Minion
|
||||
|
||||
public Player getKiller()
|
||||
{
|
||||
return _player;
|
||||
return _killer;
|
||||
}
|
||||
|
||||
public Player getPlayer()
|
||||
|
@ -1319,6 +1319,9 @@ public class TypeWars extends TeamGame
|
||||
int spawns = 0;
|
||||
for(Minion minion : _deadMinions)
|
||||
{
|
||||
if(minion.getType().getSize() != size)
|
||||
continue;
|
||||
|
||||
if(minion.getPlayer() == null)
|
||||
continue;
|
||||
|
||||
|
@ -66,6 +66,9 @@ public abstract class KitTypeWarsBase extends Kit
|
||||
if(!Manager.GetGame().IsLive())
|
||||
return;
|
||||
|
||||
if(!Manager.GetGame().IsPlaying(event.getPlayer()))
|
||||
return;
|
||||
|
||||
if(event.getAction() == Action.LEFT_CLICK_AIR || event.getAction() == Action.LEFT_CLICK_BLOCK)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user