New setting "broadcastDescriptionChanges" (default false) which can be enabled to have faction description changes broadcast to everyone on the server. Previously description changes were always broadcast.

Also added witch and wither boss to monster list, missed that for last release.
This commit is contained in:
Brettflan 2012-11-09 18:22:39 -06:00
parent 95289e1411
commit 1c8d6919bd
2 changed files with 11 additions and 1 deletions

View File

@ -96,6 +96,8 @@ public class Conf
public static String herochatAllyName = "Allies"; public static String herochatAllyName = "Allies";
public static boolean broadcastDescriptionChanges = false;
public static double autoLeaveAfterDaysOfInactivity = 10.0; public static double autoLeaveAfterDaysOfInactivity = 10.0;
public static double autoLeaveRoutineRunsEveryXMinutes = 5.0; public static double autoLeaveRoutineRunsEveryXMinutes = 5.0;
public static boolean removePlayerDataWhenBanned = true; public static boolean removePlayerDataWhenBanned = true;
@ -322,6 +324,8 @@ public class Conf
monsters.add(EntityType.SKELETON); monsters.add(EntityType.SKELETON);
monsters.add(EntityType.SLIME); monsters.add(EntityType.SLIME);
monsters.add(EntityType.SPIDER); monsters.add(EntityType.SPIDER);
monsters.add(EntityType.WITCH);
monsters.add(EntityType.WITHER);
monsters.add(EntityType.ZOMBIE); monsters.add(EntityType.ZOMBIE);
spoutHealthBarColorUnderQuota.put(1.0d, "&2"); spoutHealthBarColorUnderQuota.put(1.0d, "&2");

View File

@ -34,6 +34,12 @@ public class CmdDescription extends FCommand
myFaction.setDescription(TextUtil.implode(args, " ").replaceAll("(&([a-f0-9]))", "& $2")); // since "&" color tags seem to work even through plain old FPlayer.sendMessage() for some reason, we need to break those up myFaction.setDescription(TextUtil.implode(args, " ").replaceAll("(&([a-f0-9]))", "& $2")); // since "&" color tags seem to work even through plain old FPlayer.sendMessage() for some reason, we need to break those up
if ( ! Conf.broadcastDescriptionChanges)
{
fme.msg("You have changed your faction description to:", myFaction.describeTo(fme));
return;
}
// Broadcast the description to everyone // Broadcast the description to everyone
for (FPlayer fplayer : FPlayers.i.getOnline()) for (FPlayer fplayer : FPlayers.i.getOnline())
{ {