Default Perms Conf Boolean

This commit is contained in:
Driftay 2019-06-30 05:19:23 -04:00
parent 477d6ae44a
commit 1a90bcbb75
2 changed files with 10 additions and 6 deletions

View File

@ -334,6 +334,7 @@ public class Conf {
// faction-<factionId>
public static String vaultPrefix = "faction-%s";
public static int defaultMaxVaults = 0;
public static boolean useCustomDefaultPermissions = true;
public static Backend backEnd = Backend.JSON;

View File

@ -104,16 +104,19 @@ public class CmdCreate extends FCommand {
}
msg(TL.COMMAND_CREATE_YOUSHOULD, p.cmdBase.cmdDescription.getUseageTemplate());
if (Conf.econEnabled) {
if (Conf.econEnabled)
Econ.setBalance(faction.getAccountId(), Conf.econFactionStartingBalance);
}
if (Conf.logFactionCreate) {
if (Conf.logFactionCreate)
SaberFactions.plugin.log(fme.getName() + TL.COMMAND_CREATE_CREATEDLOG.toString() + tag);
}
if (SaberFactions.plugin.getConfig().getBoolean("fpaypal.Enabled")) {
if (SaberFactions.plugin.getConfig().getBoolean("fpaypal.Enabled"))
this.fme.msg(TL.COMMAND_PAYPALSET_CREATED);
}
if (Conf.useCustomDefaultPermissions) faction.setDefaultPerms();
fme.setCooldown("create", System.currentTimeMillis() + (SaberFactions.plugin.getConfig().getInt("fcooldowns.f-create") * 1000));