Added possibility to specify a player in the /f join command (/f join <faction> [player=you]), to make a player other than yourself join the specified faction. The new permission factions.join.others (added to factions.kit.mod and above) is required to be able to specify a different player.

Note that the player cannot currently already be in another faction; if they are, you'll need to /f kick them first. Also note that if the faction isn't open (with no invitation required), the player isn't invited, and you don't have the factions.join.any permission or have admin bypass mode on, the attempt will also fail.

Also, added new log method which accepts arguments (like the msg method).
This commit is contained in:
Brettflan
2012-02-26 12:29:44 -06:00
parent 02200e5793
commit d71bd15a79
4 changed files with 49 additions and 23 deletions

View File

@ -216,7 +216,17 @@ public abstract class MPlugin extends JavaPlugin
{
log(Level.INFO, msg);
}
public void log(String str, Object... args)
{
log(Level.INFO, this.txt.parse(str, args));
}
public void log(Level level, String str, Object... args)
{
log(level, this.txt.parse(str, args));
}
public void log(Level level, Object msg)
{
Logger.getLogger("Minecraft").log(level, "["+this.getDescription().getFullName()+"] "+msg);