mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-13 00:37:27 +00:00
29 lines
908 B
Java
29 lines
908 B
Java
package modtweaker2.mods.botania.commands;
|
|
|
|
import java.util.Set;
|
|
|
|
import minetweaker.MineTweakerAPI;
|
|
import minetweaker.MineTweakerImplementationAPI;
|
|
import minetweaker.api.player.IPlayer;
|
|
import minetweaker.api.server.ICommandFunction;
|
|
import vazkii.botania.api.BotaniaAPI;
|
|
|
|
public class BotaniaBrewLogger implements ICommandFunction {
|
|
|
|
@Override
|
|
public void execute(String[] arguments, IPlayer player) {
|
|
Set<String> brew_keys = BotaniaAPI.brewMap.keySet();
|
|
System.out.println("Brews: " + brew_keys.size());
|
|
for (String key : brew_keys) {
|
|
System.out.println("Brew " + key);
|
|
MineTweakerAPI.logCommand(key);
|
|
}
|
|
|
|
if (player != null) {
|
|
player.sendChat(
|
|
MineTweakerImplementationAPI.platform
|
|
.getMessage("List generated; see minetweaker.log in your logs dir"));
|
|
}
|
|
}
|
|
}
|