Default Perms Conf Boolean
This commit is contained in:
parent
477d6ae44a
commit
1a90bcbb75
@ -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;
|
||||
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user