src/main/java/me/firewolf8385/flameperms/commands/subcommands/group/GPermission.java
/**
     * Add a permission to a group via command.
     * @param sender Command sender.
     * @param group Group permission is added to.
     * @param args Command arguments
     */
Add a permission to a group via command.
@param sender Command sender.
@param group Group permission is added to.
@param args Command arguments
Add a permission to a group via command . @param sender Command sender . @param group Group permission is added to . @param args Command arguments
private void add(CommandSender sender, String group, String[] args)
    {
        if(args.length == 0)
        {
            ChatUtils.chat(sender, "color2&lUsage color1- color5/fp group [group] permission add [permission] <server>");
        }
        String permission = args[0];
        String server = "global";
        if(args.length == 2)
        {
            server = args[1];
        }
        GroupAPI.addPermission(group, permission, server);
        ChatUtils.chat(sender, "color2&lFlarePerms color1- color4" + permission + " color3has been added to  color4" + group + " color3on color4" + server + "color3.");
    }
private void add ( CommandSender sender , String group , String [ ] args ) { if ( args . length == 0 ) { ChatUtils . chat ( sender , "color2&lUsage color1- color5/fp group [group] permission add [permission] <server>" ) ; } String permission = args [ 0 ] ; String server = "global" ; if ( args . length == 2 ) { server = args [ 1 ] ; } GroupAPI . addPermission ( group , permission , server ) ; ChatUtils . chat ( sender , "color2&lFlarePerms color1- color4" + permission + " color3has been added to  color4" + group + " color3on color4" + server + "color3." ) ; }
Add a permission to a group via command.
Add a permission to a group via command .
// Exit if not enough arguments.