fixing chat and test commands.
This commit is contained in:
parent
0f8028f6e6
commit
4abad9e1c4
@ -463,11 +463,12 @@ public class TypeWars extends TeamGame
|
||||
if(GetState() != GameState.Live)
|
||||
return;
|
||||
|
||||
if(event.getMessage().contains("/Money"))
|
||||
{
|
||||
|
||||
if(!Manager.GetClients().Get(event.getPlayer()).GetRank().has(event.getPlayer(), Rank.DEVELOPER, true))
|
||||
return;
|
||||
|
||||
if(event.getMessage().contains("/Money"))
|
||||
{
|
||||
_moneyMap.put(event.getPlayer(), 1000);
|
||||
UtilPlayer.message(event.getPlayer(), F.main("Money", "You got some Money"));
|
||||
event.setCancelled(true);
|
||||
@ -476,6 +477,9 @@ public class TypeWars extends TeamGame
|
||||
|
||||
if(event.getMessage().contains("/Boss"))
|
||||
{
|
||||
if(!Manager.GetClients().Get(event.getPlayer()).GetRank().has(event.getPlayer(), Rank.DEVELOPER, true))
|
||||
return;
|
||||
|
||||
if(!IsPlaying(event.getPlayer()))
|
||||
return;
|
||||
|
||||
@ -820,6 +824,8 @@ public class TypeWars extends TeamGame
|
||||
if(!GetPlayers(true).contains(event.getPlayer()))
|
||||
return;
|
||||
|
||||
try
|
||||
{
|
||||
Minion minion = getFarestMininion(event.getPlayer(), event.getMessage());
|
||||
|
||||
Bukkit.getPluginManager().callEvent(new TypeAttemptEvent(event.getPlayer(), event.getMessage(), minion != null));
|
||||
@ -847,6 +853,8 @@ public class TypeWars extends TeamGame
|
||||
_moneyMap.put(event.getPlayer(), _moneyMap.get(event.getPlayer()) + minion.getMoney());
|
||||
return;
|
||||
}
|
||||
catch (Exception ex) {}
|
||||
}
|
||||
|
||||
public enum KillType
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user