Small fix
This commit is contained in:
parent
1a90bcbb75
commit
6cfc36b50a
@ -335,6 +335,7 @@ public class Conf {
|
|||||||
public static String vaultPrefix = "faction-%s";
|
public static String vaultPrefix = "faction-%s";
|
||||||
public static int defaultMaxVaults = 0;
|
public static int defaultMaxVaults = 0;
|
||||||
public static boolean useCustomDefaultPermissions = true;
|
public static boolean useCustomDefaultPermissions = true;
|
||||||
|
public static boolean usePermissionHints = false;
|
||||||
|
|
||||||
public static Backend backEnd = Backend.JSON;
|
public static Backend backEnd = Backend.JSON;
|
||||||
|
|
||||||
|
@ -116,6 +116,7 @@ public class CmdCreate extends FCommand {
|
|||||||
this.fme.msg(TL.COMMAND_PAYPALSET_CREATED);
|
this.fme.msg(TL.COMMAND_PAYPALSET_CREATED);
|
||||||
|
|
||||||
if (Conf.useCustomDefaultPermissions) faction.setDefaultPerms();
|
if (Conf.useCustomDefaultPermissions) faction.setDefaultPerms();
|
||||||
|
if (Conf.usePermissionHints) fme.msg(TL.COMMAND_HINT_PERMISSION);
|
||||||
|
|
||||||
|
|
||||||
fme.setCooldown("create", System.currentTimeMillis() + (SaberFactions.plugin.getConfig().getInt("fcooldowns.f-create") * 1000));
|
fme.setCooldown("create", System.currentTimeMillis() + (SaberFactions.plugin.getConfig().getInt("fcooldowns.f-create") * 1000));
|
||||||
|
@ -707,6 +707,7 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setDefaultPerms() {
|
public void setDefaultPerms() {
|
||||||
|
if (!Conf.useCustomDefaultPermissions) return;
|
||||||
Map<PermissableAction, Access> defaultMap = new HashMap<>();
|
Map<PermissableAction, Access> defaultMap = new HashMap<>();
|
||||||
for (PermissableAction permissableAction : PermissableAction.values()) {
|
for (PermissableAction permissableAction : PermissableAction.values()) {
|
||||||
defaultMap.put(permissableAction, Access.UNDEFINED);
|
defaultMap.put(permissableAction, Access.UNDEFINED);
|
||||||
|
Loading…
Reference in New Issue
Block a user