Added fence gates to default "territoryProtectedMaterials" list.
Existing users should run these commands to add it to an existing config, if desired: /f config territoryProtectedMaterials FENCE_GATE /f config territoryProtectedMaterialsWhenOffline FENCE_GATE Also changed first letter of "canLeaveWithNegativePower" setting to lowercase, to fit with Java standards. If you had previously changed this setting to false, you'll need to do so again.
This commit is contained in:
parent
04074bc2b4
commit
3981ca4dde
@ -43,7 +43,7 @@ public class Conf
|
|||||||
public static boolean showEnemyFactionsOnMap = true;
|
public static boolean showEnemyFactionsOnMap = true;
|
||||||
|
|
||||||
// Disallow joining/leaving/kicking while power is negative
|
// Disallow joining/leaving/kicking while power is negative
|
||||||
public static boolean CanLeaveWithNegativePower = true;
|
public static boolean canLeaveWithNegativePower = true;
|
||||||
|
|
||||||
// Configuration for faction-only chat
|
// Configuration for faction-only chat
|
||||||
public static boolean factionOnlyChat = true;
|
public static boolean factionOnlyChat = true;
|
||||||
@ -250,6 +250,7 @@ public class Conf
|
|||||||
|
|
||||||
territoryProtectedMaterials.add(Material.WOODEN_DOOR);
|
territoryProtectedMaterials.add(Material.WOODEN_DOOR);
|
||||||
territoryProtectedMaterials.add(Material.TRAP_DOOR);
|
territoryProtectedMaterials.add(Material.TRAP_DOOR);
|
||||||
|
territoryProtectedMaterials.add(Material.FENCE_GATE);
|
||||||
territoryProtectedMaterials.add(Material.DISPENSER);
|
territoryProtectedMaterials.add(Material.DISPENSER);
|
||||||
territoryProtectedMaterials.add(Material.CHEST);
|
territoryProtectedMaterials.add(Material.CHEST);
|
||||||
territoryProtectedMaterials.add(Material.FURNACE);
|
territoryProtectedMaterials.add(Material.FURNACE);
|
||||||
@ -264,6 +265,7 @@ public class Conf
|
|||||||
|
|
||||||
territoryProtectedMaterialsWhenOffline.add(Material.WOODEN_DOOR);
|
territoryProtectedMaterialsWhenOffline.add(Material.WOODEN_DOOR);
|
||||||
territoryProtectedMaterialsWhenOffline.add(Material.TRAP_DOOR);
|
territoryProtectedMaterialsWhenOffline.add(Material.TRAP_DOOR);
|
||||||
|
territoryProtectedMaterialsWhenOffline.add(Material.FENCE_GATE);
|
||||||
territoryProtectedMaterialsWhenOffline.add(Material.DISPENSER);
|
territoryProtectedMaterialsWhenOffline.add(Material.DISPENSER);
|
||||||
territoryProtectedMaterialsWhenOffline.add(Material.CHEST);
|
territoryProtectedMaterialsWhenOffline.add(Material.CHEST);
|
||||||
territoryProtectedMaterialsWhenOffline.add(Material.FURNACE);
|
territoryProtectedMaterialsWhenOffline.add(Material.FURNACE);
|
||||||
|
@ -577,7 +577,7 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Conf.CanLeaveWithNegativePower && this.getPower() < 0)
|
if (!Conf.canLeaveWithNegativePower && this.getPower() < 0)
|
||||||
{
|
{
|
||||||
msg("<b>You cannot leave until your power is positive.");
|
msg("<b>You cannot leave until your power is positive.");
|
||||||
return;
|
return;
|
||||||
|
@ -47,7 +47,7 @@ public class CmdJoin extends FCommand
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Conf.CanLeaveWithNegativePower && fme.getPower() < 0)
|
if (!Conf.canLeaveWithNegativePower && fme.getPower() < 0)
|
||||||
{
|
{
|
||||||
msg("<b>You cannot join a faction until your power is positive.");
|
msg("<b>You cannot join a faction until your power is positive.");
|
||||||
return;
|
return;
|
||||||
|
@ -57,7 +57,7 @@ public class CmdKick extends FCommand
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! Conf.CanLeaveWithNegativePower && you.getPower() < 0)
|
if ( ! Conf.canLeaveWithNegativePower && you.getPower() < 0)
|
||||||
{
|
{
|
||||||
msg("<b>You cannot kick that member until their power is positive.");
|
msg("<b>You cannot kick that member until their power is positive.");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user