Default Perm for /f home fixed
This commit is contained in:
parent
a495f71278
commit
ce8e5853a4
@ -1,152 +1,152 @@
|
|||||||
package com.massivecraft.factions.zcore.fperms;
|
package com.massivecraft.factions.zcore.fperms;
|
||||||
|
|
||||||
public class DefaultPermissions {
|
public class DefaultPermissions {
|
||||||
public boolean ban;
|
public boolean ban;
|
||||||
public boolean build;
|
public boolean build;
|
||||||
public boolean destroy;
|
public boolean destroy;
|
||||||
public boolean frostwalk;
|
public boolean frostwalk;
|
||||||
public boolean painbuild;
|
public boolean painbuild;
|
||||||
public boolean door;
|
public boolean door;
|
||||||
public boolean button;
|
public boolean button;
|
||||||
public boolean lever;
|
public boolean lever;
|
||||||
public boolean container;
|
public boolean container;
|
||||||
public boolean invite;
|
public boolean invite;
|
||||||
public boolean kick;
|
public boolean kick;
|
||||||
public boolean items;
|
public boolean items;
|
||||||
public boolean sethome;
|
public boolean sethome;
|
||||||
public boolean territory;
|
public boolean territory;
|
||||||
public boolean access;
|
public boolean access;
|
||||||
public boolean home;
|
public boolean home;
|
||||||
public boolean disband;
|
public boolean disband;
|
||||||
public boolean promote;
|
public boolean promote;
|
||||||
public boolean setwarp;
|
public boolean setwarp;
|
||||||
public boolean warp;
|
public boolean warp;
|
||||||
public boolean fly;
|
public boolean fly;
|
||||||
public boolean vault;
|
public boolean vault;
|
||||||
public boolean tntbank;
|
public boolean tntbank;
|
||||||
public boolean tntfill;
|
public boolean tntfill;
|
||||||
public boolean withdraw;
|
public boolean withdraw;
|
||||||
public boolean chest;
|
public boolean chest;
|
||||||
public boolean spawner;
|
public boolean spawner;
|
||||||
|
|
||||||
public DefaultPermissions() {
|
public DefaultPermissions() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public DefaultPermissions(boolean def) {
|
public DefaultPermissions(boolean def) {
|
||||||
this.ban = def;
|
this.ban = def;
|
||||||
this.build = def;
|
this.build = def;
|
||||||
this.destroy = def;
|
this.destroy = def;
|
||||||
this.frostwalk = def;
|
this.frostwalk = def;
|
||||||
this.painbuild = def;
|
this.painbuild = def;
|
||||||
this.door = def;
|
this.door = def;
|
||||||
this.button = def;
|
this.button = def;
|
||||||
this.lever = def;
|
this.lever = def;
|
||||||
this.container = def;
|
this.container = def;
|
||||||
this.invite = def;
|
this.invite = def;
|
||||||
this.kick = def;
|
this.kick = def;
|
||||||
this.items = def;
|
this.items = def;
|
||||||
this.sethome = def;
|
this.sethome = def;
|
||||||
this.territory = def;
|
this.territory = def;
|
||||||
this.access = def;
|
this.access = def;
|
||||||
this.home = def;
|
this.home = def;
|
||||||
this.disband = def;
|
this.disband = def;
|
||||||
this.promote = def;
|
this.promote = def;
|
||||||
this.setwarp = def;
|
this.setwarp = def;
|
||||||
this.warp = def;
|
this.warp = def;
|
||||||
this.fly = def;
|
this.fly = def;
|
||||||
this.vault = def;
|
this.vault = def;
|
||||||
this.tntbank = def;
|
this.tntbank = def;
|
||||||
this.tntfill = def;
|
this.tntfill = def;
|
||||||
this.withdraw = def;
|
this.withdraw = def;
|
||||||
this.chest = def;
|
this.chest = def;
|
||||||
this.spawner = def;
|
this.spawner = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DefaultPermissions(boolean canBan,
|
public DefaultPermissions(boolean canBan,
|
||||||
boolean canBuild,
|
boolean canBuild,
|
||||||
boolean canDestory,
|
boolean canDestory,
|
||||||
boolean canFrostwalk,
|
boolean canFrostwalk,
|
||||||
boolean canPainbuild,
|
boolean canPainbuild,
|
||||||
boolean canDoor,
|
boolean canDoor,
|
||||||
boolean canButton,
|
boolean canButton,
|
||||||
boolean canLever,
|
boolean canLever,
|
||||||
boolean canContainer,
|
boolean canContainer,
|
||||||
boolean canInvite,
|
boolean canInvite,
|
||||||
boolean canKick,
|
boolean canKick,
|
||||||
boolean canItems,
|
boolean canItems,
|
||||||
boolean canSethome,
|
boolean canSethome,
|
||||||
boolean canTerritory,
|
boolean canTerritory,
|
||||||
boolean canAccess,
|
boolean canAccess,
|
||||||
boolean canHome,
|
boolean canHome,
|
||||||
boolean canDisband,
|
boolean canDisband,
|
||||||
boolean canPromote,
|
boolean canPromote,
|
||||||
boolean canSetwarp,
|
boolean canSetwarp,
|
||||||
boolean canWarp,
|
boolean canWarp,
|
||||||
boolean canFly,
|
boolean canFly,
|
||||||
boolean canVault,
|
boolean canVault,
|
||||||
boolean canTntbank,
|
boolean canTntbank,
|
||||||
boolean canTntfill,
|
boolean canTntfill,
|
||||||
boolean canWithdraw,
|
boolean canWithdraw,
|
||||||
boolean canChest,
|
boolean canChest,
|
||||||
boolean canSpawners) {
|
boolean canSpawners) {
|
||||||
this.ban = canBan;
|
this.ban = canBan;
|
||||||
this.build = canBuild;
|
this.build = canBuild;
|
||||||
this.destroy = canDestory;
|
this.destroy = canDestory;
|
||||||
this.frostwalk = canFrostwalk;
|
this.frostwalk = canFrostwalk;
|
||||||
this.painbuild = canPainbuild;
|
this.painbuild = canPainbuild;
|
||||||
this.door = canDoor;
|
this.door = canDoor;
|
||||||
this.button = canButton;
|
this.button = canButton;
|
||||||
this.lever = canLever;
|
this.lever = canLever;
|
||||||
this.container = canContainer;
|
this.container = canContainer;
|
||||||
this.invite = canInvite;
|
this.invite = canInvite;
|
||||||
this.kick = canKick;
|
this.kick = canKick;
|
||||||
this.items = canItems;
|
this.items = canItems;
|
||||||
this.sethome = canSethome;
|
this.sethome = canSethome;
|
||||||
this.territory = canTerritory;
|
this.territory = canTerritory;
|
||||||
this.access = canAccess;
|
this.access = canAccess;
|
||||||
this.home = canHome;
|
this.home = canHome;
|
||||||
this.disband = canDisband;
|
this.disband = canDisband;
|
||||||
this.promote = canPromote;
|
this.promote = canPromote;
|
||||||
this.setwarp = canSetwarp;
|
this.setwarp = canSetwarp;
|
||||||
this.warp = canWarp;
|
this.warp = canWarp;
|
||||||
this.fly = canFly;
|
this.fly = canFly;
|
||||||
this.vault = canVault;
|
this.vault = canVault;
|
||||||
this.tntbank = canTntbank;
|
this.tntbank = canTntbank;
|
||||||
this.tntfill = canTntfill;
|
this.tntfill = canTntfill;
|
||||||
this.withdraw = canWithdraw;
|
this.withdraw = canWithdraw;
|
||||||
this.chest = canChest;
|
this.chest = canChest;
|
||||||
this.spawner = canSpawners;
|
this.spawner = canSpawners;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public boolean getbyName(String name) {
|
public boolean getbyName(String name) {
|
||||||
if (name == "ban") return this.ban;
|
if (name == "ban") return this.ban;
|
||||||
else if (name == "build") return this.build;
|
else if (name == "build") return this.build;
|
||||||
else if (name == "destroy") return this.destroy;
|
else if (name == "destroy") return this.destroy;
|
||||||
else if (name == "frostwalk") return this.frostwalk;
|
else if (name == "frostwalk") return this.frostwalk;
|
||||||
else if (name == "painbuild") return this.painbuild;
|
else if (name == "painbuild") return this.painbuild;
|
||||||
else if (name == "door") return this.door;
|
else if (name == "door") return this.door;
|
||||||
else if (name == "button") return this.button;
|
else if (name == "button") return this.button;
|
||||||
else if (name == "lever") return this.lever;
|
else if (name == "lever") return this.lever;
|
||||||
else if (name == "container") return this.container;
|
else if (name == "home") return this.home;
|
||||||
else if (name == "invite") return this.invite;
|
else if (name == "container") return this.container;
|
||||||
else if (name == "kick") return this.kick;
|
else if (name == "invite") return this.invite;
|
||||||
else if (name == "items") return this.items;
|
else if (name == "kick") return this.kick;
|
||||||
else if (name == "sethome") return this.sethome;
|
else if (name == "items") return this.items;
|
||||||
else if (name == "territory") return this.territory;
|
else if (name == "sethome") return this.sethome;
|
||||||
else if (name == "access") return this.access;
|
else if (name == "territory") return this.territory;
|
||||||
else if (name == "home") return this.disband;
|
else if (name == "access") return this.access;
|
||||||
else if (name == "disband") return this.disband;
|
else if (name == "disband") return this.disband;
|
||||||
else if (name == "promote") return this.promote;
|
else if (name == "promote") return this.promote;
|
||||||
else if (name == "setwarp") return this.setwarp;
|
else if (name == "setwarp") return this.setwarp;
|
||||||
else if (name == "warp") return this.warp;
|
else if (name == "warp") return this.warp;
|
||||||
else if (name == "fly") return this.fly;
|
else if (name == "fly") return this.fly;
|
||||||
else if (name == "vault") return this.vault;
|
else if (name == "vault") return this.vault;
|
||||||
else if (name == "tntbank") return this.tntbank;
|
else if (name == "tntbank") return this.tntbank;
|
||||||
else if (name == "tntfill") return this.tntfill;
|
else if (name == "tntfill") return this.tntfill;
|
||||||
else if (name == "withdraw") return this.withdraw;
|
else if (name == "withdraw") return this.withdraw;
|
||||||
else if (name == "chest") return this.chest;
|
else if (name == "chest") return this.chest;
|
||||||
else if (name == "spawner") return this.spawner;
|
else if (name == "spawner") return this.spawner;
|
||||||
else return false;
|
else return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user