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:
@ -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);
|
||||
|
Reference in New Issue
Block a user