Working permdelta parser

This commit is contained in:
Olof Larsson
2011-10-23 23:38:26 +02:00
parent 371261a07f
commit 958a1e0d9f
5 changed files with 7 additions and 6 deletions

View File

@ -37,7 +37,7 @@ public class CmdDescription extends FCommand
// Broadcast the description to everyone
for (FPlayer fplayer : FPlayers.i.getOnline())
{
fplayer.msg("<i>The faction %s<i> changed their description to:", myFaction.describeTo(fplayer));
fplayer.msg("<h>%s<i> changed their description to:", myFaction.describeTo(fplayer));
fplayer.msg("<h>"+myFaction.getDescription());
}
}

View File

@ -62,7 +62,7 @@ public class CmdPerm extends FCommand
}
// TODO: Awesomesause parser for deltas...
Set<Rel> targetValue = FactionPerm.parseRelDeltas(TextUtil.implode(args.subList(2, args.size()-1), " "), faction.getPerm(perm));
Set<Rel> targetValue = FactionPerm.parseRelDeltas(TextUtil.implode(args.subList(2, args.size()), " "), faction.getPerm(perm));
// Do the sender have the right to change perms for this faction?
if (Permission.PERM_ANY.has(sender))