adding area info command.
This commit is contained in:
parent
112f94a842
commit
53d5c2fd0e
@ -74,6 +74,8 @@ import org.bukkit.inventory.ItemStack;
|
|||||||
import org.bukkit.potion.PotionEffect;
|
import org.bukkit.potion.PotionEffect;
|
||||||
import org.bukkit.potion.PotionEffectType;
|
import org.bukkit.potion.PotionEffectType;
|
||||||
|
|
||||||
|
import com.sun.xml.internal.ws.resources.UtilMessages;
|
||||||
|
|
||||||
public class EventGame extends Game
|
public class EventGame extends Game
|
||||||
{
|
{
|
||||||
private GameHostManager _mps;
|
private GameHostManager _mps;
|
||||||
@ -1041,8 +1043,34 @@ public class EventGame extends Game
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void listAreaSettings(Player player)
|
||||||
|
{
|
||||||
|
for(EventArea area : _customAreas.values())
|
||||||
|
{
|
||||||
|
UtilPlayer.message(player, F.main("Event", "============================"));
|
||||||
|
UtilPlayer.message(player, F.main("Event", "Settings for area " + area.ID));
|
||||||
|
UtilPlayer.message(player, F.oo("Damage All", area.DamageAll) + ", "
|
||||||
|
+ F.oo("Damage PvP", area.DamagePvP) + ", "
|
||||||
|
+ F.oo("Damage PvE", area.DamagePvE)
|
||||||
|
+ ", " + F.oo("Damage EvP", area.DamageEvP));
|
||||||
|
|
||||||
|
UtilPlayer.message(player, F.main("Event", "Potion Effects for area " + area.ID));
|
||||||
|
for(PotionEffectType type : area.PotionEffects.keySet())
|
||||||
|
UtilPlayer.message(player, F.oo(type.getName(), true) + " level: " + area.PotionEffects.get(type));
|
||||||
|
|
||||||
|
for(SalesPackageBase gadget : area.GadgetsEnabled)
|
||||||
|
UtilPlayer.message(player, F.oo(gadget.GetName(), true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void editArea(Player player, String[] args)
|
public void editArea(Player player, String[] args)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if(args[1].equalsIgnoreCase("Info"))
|
||||||
|
{
|
||||||
|
listAreaSettings(player);
|
||||||
|
return;
|
||||||
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if(_customAreas.containsKey(Integer.parseInt(args[1])))
|
if(_customAreas.containsKey(Integer.parseInt(args[1])))
|
||||||
|
Loading…
Reference in New Issue
Block a user