2015-02-20 23:57:32 +02:00
|
|
|
package modtweaker2.helpers;
|
2015-01-11 21:59:45 +02:00
|
|
|
|
|
|
|
|
import minetweaker.MineTweakerAPI;
|
|
|
|
|
import minetweaker.MineTweakerImplementationAPI;
|
|
|
|
|
import minetweaker.api.player.IPlayer;
|
|
|
|
|
|
|
|
|
|
public class LogHelper {
|
|
|
|
|
public static void logPrinted(IPlayer player) {
|
|
|
|
|
if (player != null) {
|
|
|
|
|
player.sendChat(MineTweakerImplementationAPI.platform.getMessage("List generated; see minetweaker.log in your minecraft dir"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void log(IPlayer player, String message) {
|
|
|
|
|
if (player != null) {
|
|
|
|
|
player.sendChat(MineTweakerImplementationAPI.platform.getMessage(message));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void print(String string) {
|
|
|
|
|
System.out.println(string);
|
|
|
|
|
MineTweakerAPI.logCommand(string);
|
|
|
|
|
}
|
|
|
|
|
}
|