Implemented SavageFactions Warp and Perms system as requested. - Credits SavageLif3 & ProSavage
This commit is contained in:
@@ -6,8 +6,8 @@ import com.massivecraft.factions.struct.Role;
|
||||
import com.massivecraft.factions.zcore.fperms.Access;
|
||||
import com.massivecraft.factions.zcore.fperms.Permissable;
|
||||
import com.massivecraft.factions.zcore.fperms.PermissableAction;
|
||||
import com.massivecraft.factions.zcore.fperms.gui.PermissableActionGUI;
|
||||
import com.massivecraft.factions.zcore.fperms.gui.PermissableRelationGUI;
|
||||
import com.massivecraft.factions.zcore.fperms.gui.PermissableActionFrame;
|
||||
import com.massivecraft.factions.zcore.fperms.gui.PermissableRelationFrame;
|
||||
import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
import java.util.Arrays;
|
||||
@@ -41,16 +41,10 @@ public class CmdPerm extends FCommand {
|
||||
@Override
|
||||
public void perform() {
|
||||
if (args.size() == 0) {
|
||||
PermissableRelationGUI gui = new PermissableRelationGUI(fme);
|
||||
gui.build();
|
||||
|
||||
me.openInventory(gui.getInventory());
|
||||
new PermissableRelationFrame(fme.getFaction()).buildGUI(fme);
|
||||
return;
|
||||
} else if (args.size() == 1 && getPermissable(argAsString(0)) != null) {
|
||||
PermissableActionGUI gui = new PermissableActionGUI(fme, getPermissable(argAsString(0)));
|
||||
gui.build();
|
||||
|
||||
me.openInventory(gui.getInventory());
|
||||
new PermissableActionFrame(fme.getFaction()).buildGUI(fme, getPermissable(argAsString(0)));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -103,7 +97,6 @@ public class CmdPerm extends FCommand {
|
||||
fme.getFaction().setPermission(permissable, permissableAction, access);
|
||||
}
|
||||
}
|
||||
|
||||
fme.msg(TL.COMMAND_PERM_SET, argAsString(1), access.name(), argAsString(0));
|
||||
P.p.log(String.format(TL.COMMAND_PERM_SET.toString(), argAsString(1), access.name(), argAsString(0)) + " for faction " + fme.getTag());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user