100+ results for 'minecraft logger.getlogger'

Not the results you expected?

Chat_PermissionsExC.java (https://gitlab.com/MineYourMind/Vault) Java · 393 lines

33

34 public class Chat_PermissionsExC extends Chat {

35 private static final Logger log = Logger.getLogger("Minecraft");

36 private final String name = "PermissionsEx_Chat";

37

Door.java (https://github.com/GuntherDW/BetterMechanics.git) Java · 180 lines

24 */

25 public class Door {

26 private static final Logger log = Logger.getLogger("Minecraft");

27 private Sign sign;

28 private Player player;

LineRenderer.java (https://bitbucket.org/michael_rodrigues/mcpatcher.git) Java · 173 lines

2

3 import com.prupe.mcpatcher.*;

4 import net.minecraft.src.ResourceLocation;

5 import net.minecraft.src.Tessellator;

10

11 public class LineRenderer {

12 private static final MCLogger logger = MCLogger.getLogger(MCPatcherUtils.RANDOM_MOBS);

13

14 private static final double D_WIDTH = 1.0 / 1024.0;

Economy_BOSE7.java (https://gitlab.com/MineYourMind/Vault) Java · 305 lines

34

35 public class Economy_BOSE7 extends AbstractEconomy {

36 private static final Logger log = Logger.getLogger("Minecraft");

37

38 private final String name = "BOSEconomy";

PostHttp.java (https://bitbucket.org/vkorolik/twoleanfour-client.git) Java · 107 lines

1 package net.minecraft.src;

2

3 import java.io.*;

99 if (!par2)

100 {

101 Logger.getLogger("Minecraft").log(Level.SEVERE, (new StringBuilder()).append("Could not post to ").append(par0URL).toString(), exception);

102 }

103 }

Economy_eWallet.java (https://gitlab.com/MineYourMind/Vault) Java · 253 lines

34

35 public class Economy_eWallet extends AbstractEconomy {

36 private static final Logger log = Logger.getLogger("Minecraft");

37

38 private final String name = "eWallet";

Teleport.java (https://github.com/jeremyroza/Essentials.git) Java · 271 lines

54 private Trade chargeFor;

55 private final IEssentials ess;

56 private static final Logger logger = Logger.getLogger("Minecraft");

57

58 private void initTimer(long delay, Target target, Trade chargeFor)

Economy_TAEcon.java (https://gitlab.com/MineYourMind/Vault) Java · 259 lines

34

35 public class Economy_TAEcon extends AbstractEconomy {

36 private static final Logger log = Logger.getLogger("Minecraft");

37

38 private final String name = "TAEcon";

BukkitPainting.java (https://gitlab.com/Skull3x/WorldEdit) Java · 110 lines

1 /*

2 * WorldEdit, a Minecraft world manipulation toolkit

3 * Copyright (C) sk89q <http://www.sk89q.com>

4 * Copyright (C) WorldEdit team and contributors

36 public class BukkitPainting extends BukkitEntity {

37

38 private static final Logger log = Logger.getLogger(BukkitPainting.class.getCanonicalName());

39

40 private static int spawnTask = -1;

Fuels.java (https://gitlab.com/MineYourMind/MineTweaker3) Java · 375 lines

20 import minetweaker.api.item.IItemStack;

21 import minetweaker.api.liquid.ILiquidStack;

22 import minetweaker.api.minecraft.MineTweakerMC;

23 import net.minecraftforge.fluids.Fluid;

24 import net.minecraftforge.fluids.FluidStack;

25 import stanhebben.zenscript.annotations.ZenClass;

26 import stanhebben.zenscript.annotations.ZenMethod;

118 ieFuel = (IronEngineFuel.Fuel) CONSTRUCT_FUEL.newInstance(MineTweakerMC.getLiquidStack(fuel).getFluid(), (float) powerPerCycle, totalBurningTime);

119 } catch (InstantiationException ex) {

120 Logger.getLogger(Fuels.class.getName()).log(Level.SEVERE, null, ex);

121 } catch (IllegalAccessException ex) {

122 Logger.getLogger(Fuels.class.getName()).log(Level.SEVERE, null, ex);

123 } catch (IllegalArgumentException ex) {

124 Logger.getLogger(Fuels.class.getName()).log(Level.SEVERE, null, ex);

125 } catch (InvocationTargetException ex) {

126 Logger.getLogger(Fuels.class.getName()).log(Level.SEVERE, null, ex);

Colorizer.java (https://bitbucket.org/Freso/mcpatcher.git) Java · 211 lines

2

3 import com.prupe.mcpatcher.*;

4 import net.minecraft.src.Potion;

5 import net.minecraft.src.ResourceLocation;

8

9 public class Colorizer {

10 private static final MCLogger logger = MCLogger.getLogger(MCPatcherUtils.CUSTOM_COLORS);

11

12 static final ResourceLocation COLOR_PROPERTIES = TexturePackAPI.newMCPatcherResourceLocation("color.properties");

MobRandomizer.java (https://bitbucket.org/SevenBits/mcpatcher.git) Java · 204 lines

5 import com.prupe.mcpatcher.TexturePackChangeHandler;

6 import com.prupe.mcpatcher.mal.biome.BiomeAPI;

7 import net.minecraft.src.Entity;

8 import net.minecraft.src.EntityLivingBase;

9 import net.minecraft.src.NBTTagCompound;

10 import net.minecraft.src.ResourceLocation;

18

19 public class MobRandomizer {

20 private static final MCLogger logger = MCLogger.getLogger(MCPatcherUtils.RANDOM_MOBS);

21 private static final LinkedHashMap<String, ResourceLocation> cache = new LinkedHashMap<String, ResourceLocation>();

22

Chat_GroupManager.java (https://gitlab.com/MineYourMind/Vault) Java · 367 lines

36 public class Chat_GroupManager extends Chat {

37

38 private static final Logger log = Logger.getLogger("Minecraft");

39 private final String name = "GroupManager - Chat";

40 private Plugin plugin = null;

Main.java (https://bitbucket.org/pluginmakers/mysqlilogin.git) Java · 213 lines

23 public String locale = "en";

24

25 static Logger log = Logger.getLogger("minecraft");

26

27 File configfile;

SaveHandler.java (https://bitbucket.org/vkorolik/twoleanfour-client.git) Java · 261 lines

3 // Decompiler options: packimports(3) braces deadcode fieldsfirst

4

5 package net.minecraft.src;

6

7 import java.io.*;

9 import java.util.logging.Logger;

10

11 // Referenced classes of package net.minecraft.src:

12 // IPlayerFileData, ISaveHandler, MinecraftException, CompressedStreamTools,

18 {

19

20 private static final Logger field_1003_a = Logger.getLogger("Minecraft");

21 private final File field_22099_b;

22 private final File field_1002_b;

77 if(datainputstream.readLong() != field_22100_d)

78 {

79 throw new MinecraftException("The save is being accessed from another location, aborting");

80 }

81 }

PropertiesFile.java (https://github.com/ToxicShade/war.git) Java · 407 lines

17 public final class PropertiesFile {

18

19 private static final Logger log = Logger.getLogger("Minecraft");

20 private String fileName;

21 private Properties props = new Properties();

ft.java (https://github.com/kpfile/Minecraft-Server-Mod.git) Java · 358 lines

8 import java.util.List;

9 import java.util.logging.Logger;

10 import net.minecraft.server.MinecraftServer;

11

12 public class ft {

13

14 public static Logger a = Logger.getLogger("Minecraft");

15 public List b = new ArrayList();

16 private MinecraftServer c;

25 private cl l;

26

27 public ft(MinecraftServer paramMinecraftServer) {

28 this.c = paramMinecraftServer;

29 this.i = paramMinecraftServer.a("banned-players.txt");

30 this.j = paramMinecraftServer.a("banned-ips.txt");

SnapshotUtilCommands.java (https://github.com/GuntherDW/worldedit-1.git) Java · 160 lines

23 import java.io.IOException;

24 import java.util.logging.Logger;

25 import com.sk89q.minecraft.util.commands.Command;

26 import com.sk89q.minecraft.util.commands.CommandContext;

27 import com.sk89q.minecraft.util.commands.CommandPermissions;

28 import com.sk89q.minecraft.util.commands.NestedCommand;

43 public class SnapshotUtilCommands {

44

45 private static Logger logger = Logger.getLogger("Minecraft.WorldEdit");

46

47 @Command(

FlatFilePermissionsResolver.java (https://gitlab.com/Skull3x/WorldEdit) Java · 248 lines

1 /*

2 * WorldEdit, a Minecraft world manipulation toolkit

3 * Copyright (C) sk89q <http://www.sk89q.com>

4 * Copyright (C) WorldEdit team and contributors

38 public class FlatFilePermissionsResolver implements PermissionsResolver {

39

40 private static final Logger log = Logger.getLogger(FlatFilePermissionsResolver.class.getCanonicalName());

41

42 private Map<String, Set<String>> userPermissionsCache;

WorldGuardCommands.java (https://github.com/talmor/worldguard.git) Java · 147 lines

29 import org.bukkit.entity.Player;

30

31 import com.sk89q.minecraft.util.commands.Command;

32 import com.sk89q.minecraft.util.commands.CommandContext;

33 import com.sk89q.minecraft.util.commands.CommandException;

34 import com.sk89q.minecraft.util.commands.CommandPermissions;

62

63 LoggerToChatHandler handler = null;

64 Logger minecraftLogger = null;

65

66 if (sender instanceof Player) {

67 handler = new LoggerToChatHandler(sender);

68 handler.setLevel(Level.ALL);

69 minecraftLogger = Logger.getLogger("Minecraft");

70 minecraftLogger.addHandler(handler);

Economy_GoldenChestEconomy.java (https://gitlab.com/MineYourMind/Vault) Java · 247 lines

33

34 public class Economy_GoldenChestEconomy extends AbstractEconomy {

35 private static final Logger log = Logger.getLogger("Minecraft");

36

37 private final String name = "GoldenChestEconomy";

BlockMapper.java (https://github.com/Retinue/BetterMechanics.git) Java · 330 lines

19 */

20 public class BlockMapper {

21 private static final Logger log = Logger.getLogger("Minecraft");

22 private static HashSet<Block> recursiveSet = new HashSet<Block>();

23

EssentialsConf.java (https://github.com/BodyshotzVG/Essentials.git) Java · 277 lines

22 public class EssentialsConf extends Configuration

23 {

24 private static final Logger LOGGER = Logger.getLogger("Minecraft");

25 private transient File configFile;

26 private transient String templateName = null;

162 catch (IOException ex)

163 {

164 Logger.getLogger(EssentialsConf.class.getName()).log(Level.SEVERE, null, ex);

165 }

166 try

Economy_DigiCoin.java (https://gitlab.com/MineYourMind/Vault) Java · 251 lines

34

35 public class Economy_DigiCoin extends AbstractEconomy {

36 private static final Logger log = Logger.getLogger("Minecraft");

37

38 private final String name = "DigiCoin";

ServerPlayerAPI.java (https://bitbucket.org/codelore/xclient.git) Java · 684 lines

1 package net.minecraft.src;

2

3 import java.io.File;

19 import net.minecraft.block.material.Material;

20 import net.minecraft.entity.Entity;

21 import net.minecraft.entity.EntityLiving;

22 import net.minecraft.entity.effect.EntityLightningBolt;

23 import net.minecraft.entity.item.EntityItem;

26 import net.minecraft.inventory.IInventory;

27 import net.minecraft.item.ItemInWorldManager;

28 import net.minecraft.item.ItemStack;

29 import net.minecraft.nbt.NBTTagCompound;

30 import net.minecraft.server.MinecraftServer;

31 import net.minecraft.server.management.ServerConfigurationManager;

PlayerAPI.java (https://bitbucket.org/codelore/xclient.git) Java · 690 lines

16 import java.util.Set;

17 import java.util.logging.Logger;

18 import net.minecraft.block.Block;

19 import net.minecraft.block.material.Material;

20 import net.minecraft.client.Minecraft;

21 import net.minecraft.client.entity.EntityClientPlayerMP;

22 import net.minecraft.client.entity.EntityPlayerSP;

23 import net.minecraft.entity.Entity;

28 import net.minecraft.entity.player.EnumStatus;

29 import net.minecraft.inventory.IInventory;

30 import net.minecraft.item.ItemStack;

38 import net.minecraft.util.Icon;

39 import net.minecraft.util.MovingObjectPosition;

40 import net.minecraft.util.Session;

Economy_Essentials.java (https://gitlab.com/MineYourMind/Vault) Java · 318 lines

37

38 public class Economy_Essentials extends AbstractEconomy {

39 private static final Logger log = Logger.getLogger("Minecraft");

40

41 private final String name = "Essentials Economy";

CommandMain.java (https://github.com/LittleGruz/Autorun-Commands.git) Java · 639 lines

35

36 public class CommandMain extends JavaPlugin{

37 Logger log = Logger.getLogger("This is MINECRAFT!");

38 private HashMap<String, String> playerCommandMap;

39 private HashMap<Location, String> blockCommandMap;

BlockMapper.java (https://github.com/GuntherDW/BetterMechanics.git) Java · 372 lines

19 */

20 public class BlockMapper {

21 private static final Logger log = Logger.getLogger("Minecraft");

22 private static HashSet<Block> recursiveSet = new HashSet<Block>();

23 private static int maxTraverse = 128;

DataSource.java (https://github.com/talmor/CanaryMod.git) Java · 432 lines

7 import java.util.logging.Logger;

8

9 import net.minecraft.server.MinecraftServer;

10

11 /**

16 public abstract class DataSource {

17

18 protected static final Logger log = Logger.getLogger("Minecraft");

19 protected List<Group> groups = new ArrayList<Group>();

20 protected List<Kit> kits = new ArrayList<Kit>();

23 protected List<Ban> bans = new ArrayList<Ban>();

24 protected Map<String, Integer> items = new HashMap<String, Integer>();

25 protected MinecraftServer server;

26 protected final Object groupLock = new Object(), kitLock = new Object(), banLock = new Object();

27 protected final Object homeLock = new Object(), warpLock = new Object(), itemLock = new Object();

TravelGatesCommandExecutor.java (https://github.com/Ghomerr/TravelGates.git) Java · 724 lines

22 public class TravelGatesCommandExecutor implements CommandExecutor

23 {

24 private static final Logger _LOGGER = Logger.getLogger(TravelGatesConstants.MINECRAFT);

25

26 private final TravelGates _plugin;

Chat_mChatSuite.java (https://gitlab.com/MineYourMind/Vault) Java · 284 lines

35

36 public class Chat_mChatSuite extends Chat {

37 private static final Logger log = Logger.getLogger("Minecraft");

38 private final String name = "mChatSuite";

39 private Plugin plugin = null;

uselesstools.java (https://github.com/RiseOfDeath/uselesstools.git) Java · 157 lines

33 public void onEnable() {

34 // TODO Auto-generated method stub

35 log = Logger.getLogger("Minecraft");

36 pm = getServer().getPluginManager();

37 config = getConfiguration();

Door.java (https://github.com/Retinue/BetterMechanics.git) Java · 203 lines

30 */

31 public class Door {

32 private static final Logger log = Logger.getLogger("Minecraft");

33 private Sign sign;

34 private Player player;

PromotionCommands.java (https://gitlab.com/Slind/PermissionsEx) Java · 178 lines

108 this.informPlayer(plugin, user.getName(), "You have been promoted on " + targetGroup.getRankLadder() + " ladder to " + targetGroup.getName() + " group");

109 sender.sendMessage("User " + user.getName() + " promoted to " + targetGroup.getName() + " group");

110 Logger.getLogger("Minecraft").info("User " + user.getName() + " has been promoted to " + targetGroup.getName() + " group on " + targetGroup.getRankLadder() + " ladder by " + promoterName);

111 } catch (RankingException e) {

112 sender.sendMessage(ChatColor.RED + "Promotion error: " + e.getMessage());

113 Logger.getLogger("Minecraft").severe("Ranking Error (" + promoterName + " > " + e.getTarget().getName() + "): " + e.getMessage());

114 }

115 }

152 this.informPlayer(plugin, user.getName(), "You have been demoted on " + targetGroup.getRankLadder() + " ladder to " + targetGroup.getName() + " group");

153 sender.sendMessage("User " + user.getName() + " demoted to " + targetGroup.getName() + " group");

154 Logger.getLogger("Minecraft").info("User " + user.getName() + " has been demoted to " + targetGroup.getName() + " group on " + targetGroup.getRankLadder() + " ladder by " + demoterName);

155 } catch (RankingException e) {

156 sender.sendMessage(ChatColor.RED + "Demotion error: " + e.getMessage());

GSBlockListener.java (https://github.com/smickles/GoldStandard.git) Java · 151 lines

102 GSPlayer gsp = plugin.getCalc().getPlayer(player.getName());

103 if (gsp == null){

104 Logger.getLogger("Minecraft").info("[GoldStandard] Null player tried to sell!");

105 return;

106 }

Chat_bPermissions2.java (https://gitlab.com/MineYourMind/Vault) Java · 264 lines

33

34 public class Chat_bPermissions2 extends Chat {

35 private static final Logger log = Logger.getLogger("Minecraft");

36 private final String name = "bInfo";

37 private Plugin plugin = null;

mcPermissions.java (https://github.com/nickrak/mcMMO.git) Java · 331 lines

43 public static void initialize(Server server)

44 {

45 Logger log = Logger.getLogger("Minecraft");

46

47 if(permissionsEnabled && permissionType != PermissionType.PERMISSIONS) return;

SpleefData.java (https://github.com/mrsheen/minecraft-hey0-plugins.git) Java · 296 lines

13

14 static Server world = etc.getServer();

15 static final Logger log = Logger.getLogger("Minecraft");

16

17 static ArrayList<String> spleefList = new ArrayList<String>();

ProtectedBlockJDBC.java (https://github.com/YellowFellow/Essentials.git) Java · 426 lines

16 public abstract class ProtectedBlockJDBC implements IProtectedBlock

17 {

18 protected static final Logger LOGGER = Logger.getLogger("Minecraft");

19 protected final transient ComboPooledDataSource cpds;

20

AAHelper.java (https://bitbucket.org/michael_rodrigues/mcpatcher.git) Java · 135 lines

4 import com.prupe.mcpatcher.MCLogger;

5 import com.prupe.mcpatcher.MCPatcherUtils;

6 import net.minecraft.src.Resource;

7 import net.minecraft.src.ResourceLocation;

8 import net.minecraft.src.SimpleResource;

9 import net.minecraft.src.TextureAtlasSprite;

14

15 public class AAHelper {

16 private static final MCLogger logger = MCLogger.getLogger(MCPatcherUtils.MIPMAP);

17

18 private static final int debugColor = Config.getBoolean(MCPatcherUtils.EXTENDED_HD, "debugBorder", false) ? 0xff0000ff : 0;

AccessedThread.java (https://github.com/phr0z3nt04st/Accessed.git) Java · 207 lines

58 /*String hostAddress = clientSocket.getInetAddress().getHostAddress();

59 if (!hostAddress.equals("127.0.0.1") && !hostAddress.equals("0:0:0:0:0:0:0:1")) {

60 Logger.getLogger("Minecraft").log(Level.INFO, "[Accessed] {0} tried accessing, but was denied.", hostAddress);

61 clientSocket.close();

62 continue;

103 }

104 } else {

105 Logger.getLogger("Minecraft").log(Level.INFO, "[Accessed] Dispatching command \"{0}\" to console.", commandToSend);

106

107 c = new InputCallable<String, String>(commandToSend) {

152 writer.println(returnFuture.get());

153 } catch (InterruptedException ex) {

154 Logger.getLogger(AccessedThread.class.getName()).log(Level.SEVERE, null, ex);

155 } catch (ExecutionException ex) {

156 Logger.getLogger(AccessedThread.class.getName()).log(Level.SEVERE, null, ex);

PropertyHandler.java (https://github.com/Travo97/Permissions.git) Java · 212 lines

41 public final class PropertyHandler {

42

43 private static final Logger log = Logger.getLogger("Minecraft");

44 private Properties properties;

45 private String fileName;

67 public void save() {

68 try {

69 this.properties.store(new FileOutputStream(this.fileName), "Minecraft Properties File");

70 } catch (IOException ex) {

71 log.log(Level.SEVERE, "Unable to save " + this.fileName, ex);

FastSwitch.java (https://github.com/Lynx-/FastSwitch.git) Java · 362 lines

25 public Player dude;

26 public Plugin instance;

27 static final Logger log = Logger.getLogger("Minecraft");

28

29 public void onDisable() {

GlobalRegionManager.java (https://github.com/HaxtorMoogle/worldguard.git) Java · 302 lines

51 public class GlobalRegionManager {

52

53 private static final Logger logger = Logger.getLogger("Minecraft.WorldGuard");

54

55 /**

Trade.java (https://github.com/jeremyroza/Essentials.git) Java · 258 lines

161 catch (IOException ex)

162 {

163 Logger.getLogger("Minecraft").log(Level.SEVERE, null, ex);

164 }

165 }

237 catch (IOException ex)

238 {

239 Logger.getLogger("Minecraft").log(Level.SEVERE, null, ex);

240 }

241 }

251 catch (IOException ex)

252 {

253 Logger.getLogger("Minecraft").log(Level.SEVERE, null, ex);

254 }

255 fw = null;

Economy_MineConomy.java (https://gitlab.com/MineYourMind/Vault) Java · 272 lines

38

39 public class Economy_MineConomy extends AbstractEconomy {

40 private static final Logger log = Logger.getLogger("Minecraft");

41

42 private final String name = "MineConomy";

Chat_iChat.java (https://gitlab.com/MineYourMind/Vault) Java · 273 lines

34 public class Chat_iChat extends Chat {

35

36 private static final Logger log = Logger.getLogger("Minecraft");

37 private final String name = "iChat";

38 private Plugin plugin = null;

Economy_CurrencyCore.java (https://gitlab.com/MineYourMind/Vault) Java · 304 lines

37

38 private Currency currency;

39 private static final Logger log = Logger.getLogger("Minecraft");

40 private final Plugin plugin;

41 private final String name = "CurrencyCore";

mod_ElementsModItems.java (https://github.com/ElementsMod/Project-Syne.git) Java · 1251 lines

1 package net.minecraft.src;

2

3 import java.util.logging.Logger;

6 public class mod_ElementsModItems extends BaseMod

7 {

8 private static final Logger MC = Logger.getLogger("Minecraft");

9 private static EnumElementsToolMaterial Tool;

10 private static EnumElementsArmorMaterial Armor;

RegionHandler.java (https://github.com/IBCodin/AutoRegionGuard.git) Java · 404 lines

14 public class RegionHandler {

15

16 public static Logger log = Logger.getLogger("Minecraft");

17 ARG plugin;

18

AcceptRulesMain.java (https://github.com/rigor789/AcceptRules.git) Java · 126 lines

12

13 public class AcceptRulesMain extends JavaPlugin {

14 Logger Log = Logger.getLogger("Minecraft");

15 public static AcceptRulesMain plugin;

16 public static ArrayList<String> players = new ArrayList<String>();

MinersHelmet.java (https://github.com/mrsheen/minecraft-hey0-plugins.git) Java · 174 lines

1 import java.util.logging.Level;

2 import java.util.logging.Logger;

3 import net.minecraft.server.MinecraftServer;

4 import java.util.ArrayList;

5 import java.io.*;

10 private MinersHelmetListener listener = new MinersHelmetListener();

11

12 static final Logger log = Logger.getLogger("Minecraft");

13 static MinecraftServer mcworld = etc.getMCServer();

SimpleClans.java (https://github.com/masp/SimpleClans.git) Java · 197 lines

24 {

25 private static SimpleClans instance;

26 private static Logger logger = Logger.getLogger("Minecraft");

27 private Method Method;

28 private ClanManager clanManager;

PreciousStones.java (https://github.com/FreezyExp/PreciousStones.git) Java · 370 lines

20 {

21 private static PreciousStones instance;

22 private static Logger logger = Logger.getLogger("Minecraft");

23 private Method Method;

24 private SettingsManager settingsManager;

ConsoleCommandHandler.java (https://github.com/fouram/mc-dev.git) Java · 348 lines

1 package net.minecraft.server;

2

3 import java.util.Iterator;

7 public class ConsoleCommandHandler {

8

9 private static Logger a = Logger.getLogger("Minecraft");

10 private MinecraftServer server;

11

12 public ConsoleCommandHandler(MinecraftServer minecraftserver) {

13 this.server = minecraftserver;

309 private void a(ICommandListener icommandlistener) {

310 icommandlistener.sendMessage("To run the server without a gui, start it like this:");

311 icommandlistener.sendMessage(" java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui");

312 icommandlistener.sendMessage("Console commands:");

313 icommandlistener.sendMessage(" help or ? shows this message");

Dwarflater.java (https://github.com/luuxx/Dwarflater.git) Java · 136 lines

20

21 public static Dwarflater plugin;

22 public final Logger logger = Logger.getLogger("Minecraft");

23 public Property woords = new Property("plugins/Dwarflater/dwarven.txt", this);

24 public static PermissionHandler permissionHandler;

Seppuku.java (https://github.com/seppukudevelopment/seppuku.git) Java · 395 lines

8 import me.rigamortis.seppuku.impl.gui.menu.GuiSeppukuMainMenu;

9 import me.rigamortis.seppuku.impl.management.*;

10 import net.minecraft.client.Minecraft;

11 import net.minecraft.util.text.ITextComponent;

127

128 public void errorChat(String message) {

129 Minecraft.getMinecraft().ingameGUI.getChatGUI().printChatMessage(new TextComponentString("\2477[Seppuku]\247c " + message));

130 }

131

135

136 public void logChat(String message) {

137 Minecraft.getMinecraft().ingameGUI.getChatGUI().printChatMessage(new TextComponentString("\2477[Seppuku]\247f " + message));

138 }

139

140 public void logcChat(ITextComponent textComponent) {

141 Minecraft.getMinecraft().ingameGUI.getChatGUI().printChatMessage(new TextComponentString("\2477[Seppuku]\247f ").appendSibling(textComponent));

142 }

143

ProfessionsPlus.java (https://github.com/aRt3m1s/ProfessionsPlus.git) Java · 107 lines

18 */

19 public class ProfessionsPlus extends JavaPlugin{

20 Logger log = Logger.getLogger("Minecraft");

21 final String ppPrefix = "[PROF] ";

22 private final PexUtils pexUtils = new PexUtils(this);

sethomeCommand.java (https://github.com/bukkitdev/Fiery.git) Java · 186 lines

17 public class sethomeCommand implements CommandExecutor

18 {

19 Logger log = Logger.getLogger("Minecraft");

20

21 public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args)

CTMUtils.java (https://bitbucket.org/prupe/mcpatcher.git) Java · 226 lines

13 import com.prupe.mcpatcher.mal.resource.TexturePackChangeHandler;

14 import com.prupe.mcpatcher.mal.tile.TileLoader;

15 import net.minecraft.src.*;

16

17 import java.util.*;

18

19 public class CTMUtils {

20 private static final MCLogger logger = MCLogger.getLogger(MCPatcherUtils.CONNECTED_TEXTURES, "CTM");

21

22 private static final boolean enableStandard = Config.getBoolean(MCPatcherUtils.CONNECTED_TEXTURES, "standard", true);

PluginLoader.java (https://github.com/kpfile/Minecraft-Server-Mod.git) Java · 274 lines

12 import java.util.logging.Level;

13 import java.util.logging.Logger;

14 import net.minecraft.server.MinecraftServer;

15

16 /**

32 DISCONNECT,

33 }

34 private static final Logger log = Logger.getLogger("Minecraft");

35 private static final Object lock = new Object();

36 private List<Plugin> plugins = new ArrayList<Plugin>();

42 * @param server

43 */

44 public PluginLoader(MinecraftServer server) {

45 properties = new PropertiesFile("server.properties");

46 this.server = new Server(server);

PlayerNBTManager.java (https://github.com/fouram/mc-dev.git) Java · 222 lines

1 package net.minecraft.server;

2

3 import java.io.DataInputStream;

14 public class PlayerNBTManager implements PlayerFileData, IDataManager {

15

16 private static final Logger a = Logger.getLogger("Minecraft");

17 private final File b;

18 private final File c;

60 try {

61 if (datainputstream.readLong() != this.e) {

62 throw new MinecraftException("The save is being accessed from another location, aborting");

63 }

64 } finally {

66 }

67 } catch (IOException ioexception) {

68 throw new MinecraftException("Failed to check session lock, aborting");

69 }

70 }

TessellatorUtils.java (https://bitbucket.org/michael_rodrigues/mcpatcher.git) Java · 165 lines

1 package com.prupe.mcpatcher;

2

3 import net.minecraft.src.Icon;

4 import net.minecraft.src.Tessellator;

5 import net.minecraft.src.TextureAtlas;

6

7 import java.lang.reflect.Field;

13

14 public class TessellatorUtils {

15 private static final MCLogger logger = MCLogger.getLogger("Tilesheet");

16

17 private static final Integer MAGIC_VALUE = 0x12345678;

Loic.java (https://github.com/LordLladar/Low-Orbit-Ion-Cannon.git) Java · 231 lines

24 private final LoicEventListener eventListener

25 = new LoicEventListener(this);

26 public static final Logger log = Logger.getLogger("Minecraft");

27 public static String name = "Low Orbit Ion Cannon";

28 public static String codename = "LOIC";

TameGrass.java (https://github.com/Yuri4171/TameGrass.git) Java · 247 lines

24 public class TameGrass extends JavaPlugin {

25

26 public static Logger log = Logger.getLogger("Minecraft");

27 public static Server server;

28 String logPrefix = "[TameGrass] ";

NetPacketThread.java (https://github.com/Clintonio/NetAPI.git) Java · 327 lines

64 * @since 0.1

65 */

66 private Logger log = Logger.getLogger("Minecraft");

67 /**

68 * The socket we are connected to

SuperPoke.java (https://github.com/polaris120990/Super-Poke.git) Java · 165 lines

15 {

16 public static SuperPoke plugin;

17 public final Logger logger = Logger.getLogger("Minecraft");

18

19 @Override

ReparametrisingInterpolation.java (https://gitlab.com/Skull3x/WorldEdit) Java · 160 lines

1 /*

2 * WorldEdit, a Minecraft world manipulation toolkit

3 * Copyright (C) sk89q <http://www.sk89q.com>

4 * Copyright (C) WorldEdit team and contributors

39 public class ReparametrisingInterpolation implements Interpolation {

40

41 private static final Logger log = Logger.getLogger(ReparametrisingInterpolation.class.getCanonicalName());

42

43 private final Interpolation baseInterpolation;

SignBlockListener.java (https://github.com/YellowFellow/Essentials.git) Java · 259 lines

22 {

23 private final transient IEssentials ess;

24 private final static Logger LOGGER = Logger.getLogger("Minecraft");

25

26 public SignBlockListener(IEssentials ess)

SnapshotUtilCommands.java (https://gitlab.com/Skull3x/WorldEdit) Java · 154 lines

1 /*

2 * WorldEdit, a Minecraft world manipulation toolkit

3 * Copyright (C) sk89q <http://www.sk89q.com>

4 * Copyright (C) WorldEdit team and contributors

20 package com.sk89q.worldedit.command;

21

22 import com.sk89q.minecraft.util.commands.Command;

23 import com.sk89q.minecraft.util.commands.CommandContext;

24 import com.sk89q.minecraft.util.commands.CommandPermissions;

25 import com.sk89q.minecraft.util.commands.Logging;

42 public class SnapshotUtilCommands {

43

44 private static final Logger logger = Logger.getLogger("Minecraft.WorldEdit");

45

46 private final WorldEdit we;

Chat_rscPermissions.java (https://gitlab.com/MineYourMind/Vault) Java · 214 lines

33 public class Chat_rscPermissions extends Chat {

34

35 private static final Logger log = Logger.getLogger("Minecraft");

36 private final Plugin vault;

37 private ru.simsonic.rscPermissions.MainPluginClass rscp;

DataSource.java (https://github.com/mrsheen/Minecraft-Server-Mod.git) Java · 519 lines

7 import java.util.logging.Level;

8 import java.util.logging.Logger;

9 import net.minecraft.server.MinecraftServer;

10

11 /**

15 public abstract class DataSource {

16

17 protected static final Logger log = Logger.getLogger("Minecraft");

18 protected List<Group> groups = new ArrayList<Group>();

19 protected List<Kit> kits = new ArrayList<Kit>();

23 protected List<Ban> bans = new ArrayList<Ban>();

24 protected Map<String, Integer> items = new HashMap<String, Integer>();

25 protected MinecraftServer server;

26 protected final Object groupLock = new Object(), kitLock = new Object(), banLock = new Object();

27 protected final Object homeLock = new Object(), warpLock = new Object(), itemLock = new Object();

BlockbagUtil.java (https://github.com/GuntherDW/BetterMechanics.git) Java · 134 lines

16 */

17 public class BlockbagUtil {

18 private static final Logger log = Logger.getLogger("Minecraft");

19

20 public static boolean safeRemoveItems(Chest chest, ItemStack itemStack) throws OutOfMaterialException {

Economy_SDFEconomy.java (https://gitlab.com/MineYourMind/Vault) Java · 229 lines

33

34 public class Economy_SDFEconomy extends AbstractEconomy {

35 private static final Logger log = Logger.getLogger("Minecraft");

36 private Plugin plugin = null;

37

Admin.java (https://github.com/FunnyJ2/AdminAssistorDev.git) Java · 170 lines

17 public class Admin extends JavaPlugin {

18

19 Logger log = Logger.getLogger("Minecraft");

20

21 private StixPlayerListener stixplayerListener = new StixPlayerListener(this);

Economy_EconXP.java (https://gitlab.com/MineYourMind/Vault) Java · 276 lines

37

38 public class Economy_EconXP extends AbstractEconomy {

39 private static final Logger log = Logger.getLogger("Minecraft");

40

41 private final String name = "EconXP";

SaveHandler.java (https://bitbucket.org/kingbowser/stormclient.git) Java · 219 lines

3 // Decompiler options: packimports(3) braces deadcode fieldsfirst

4

5 package net.minecraft.src;

6

7 import java.io.*;

9 import java.util.logging.Logger;

10

11 // Referenced classes of package net.minecraft.src:

12 // ISaveHandler, MinecraftException, WorldProviderHell, ChunkLoader,

18 {

19

20 private static final Logger logger = Logger.getLogger("Minecraft");

21 private final File saveDirectory;

22 private final File playersDirectory;

77 if(datainputstream.readLong() != now)

78 {

79 throw new MinecraftException("The save is being accessed from another location, aborting");

80 }

81 }

MobRuleList.java (https://bitbucket.org/prupe/mcpatcher.git) Java · 190 lines

7 import com.prupe.mcpatcher.mal.resource.TexturePackAPI;

8 import com.prupe.mcpatcher.mal.util.WeightedIndex;

9 import net.minecraft.src.ResourceLocation;

10

11 import java.util.*;

12

13 class MobRuleList {

14 private static final MCLogger logger = MCLogger.getLogger(MCPatcherUtils.RANDOM_MOBS);

15

16 public static final String ALTERNATIVES_REGEX = "_(eyes|overlay|tame|angry|collar|fur|invulnerable|shooting)\\.properties$";

FGFSConnection.java (https://bitbucket.org/muraleen/virtual-star-alliance-autopirep-and-acars-system-flightgear.git) Java · 330 lines

53 FGFSConnection fgfs = new FGFSConnection(host, port);

54 } catch (IOException ex) {

55 Logger.getLogger(Connect.class.getName()).log(Level.SEVERE, null, ex);

56 }

57 *

EJBClientReconnectionTestCase.java (https://github.com/maschmid/jboss-as.git) Java · 151 lines

54 @RunAsClient

55 public class EJBClientReconnectionTestCase {

56 private static final Logger log = Logger.getLogger(EJBClientReconnectionTestCase.class);

57

58 private static final String DEPLOYMENT = "ejbclientreconnection";

DebugPasteCommand.java (https://gitlab.com/ixilon/nukkit) Java · 90 lines

49 b.append("version.api: ").append(server.getApiVersion()).append('\n');

50 b.append("version.nukkit: ").append(server.getNukkitVersion()).append('\n');

51 b.append("version.minecraft: ").append(server.getVersion()).append('\n');

52 b.append("version.protocol: ").append(ProtocolInfo.CURRENT_PROTOCOL).append('\n');

53 b.append("plugins:");

82 sender.sendMessage(link);

83 } catch (IOException e) {

84 MainLogger.getLogger().logException(e);

85 }

86 }

SnakeSettings.java (https://github.com/Yuri4171/TameGrass.git) Java · 223 lines

168

169 public void setBackgroundBlock(String colour){

170 //Logger.getLogger("Minecraft").info("Checking BG colour!");

171 //Logger.getLogger("Minecraft").info("String colour = " + colour);

218 backgroundColour = 0;

219 }

220 //Logger.getLogger("Minecraft").info("BG ID = " + backgroundColour);

221 }

222

Chat_bPermissions.java (https://gitlab.com/MineYourMind/Vault) Java · 263 lines

33

34 public class Chat_bPermissions extends Chat {

35 private static final Logger log = Logger.getLogger("Minecraft");

36 private final String name = "bInfo";

37 private Plugin plugin = null;

EssentialsGeoIPPlayerListener.java (https://github.com/BodyshotzVG/Essentials.git) Java · 178 lines

29 {

30 LookupService ls = null;

31 private static final Logger logger = Logger.getLogger("Minecraft");

32 File databaseFile;

33 File dataFolder;

DroneDestructor.java (https://github.com/ppitonak/arquillian-extension-drone.git) Java · 126 lines

57 */

58 public class DroneDestructor {

59 private static final Logger log = Logger.getLogger(DroneDestructor.class.getName());

60

61 @Inject

gamemode.java (https://github.com/scranner/GameMode.git) Java · 258 lines

13 public class gamemode extends JavaPlugin

14 {

15 Logger log = Logger.getLogger("Minecraft");

16

17 public void onDisable()

ShallowObjectReport.java (https://gitlab.com/igserfurtmcschulserver/CustomWorldGuard) Java · 58 lines

1 /*

2 * WorldGuard, a suite of tools for Minecraft

3 * Copyright (C) sk89q <http://www.sk89q.com>

4 * Copyright (C) WorldGuard team and contributors

29 public class ShallowObjectReport extends DataReport {

30

31 private static final Logger log = Logger.getLogger(ShallowObjectReport.class.getCanonicalName());

32

33 public ShallowObjectReport(String title, Object object) {

FlatFileKitsManager.java (https://github.com/bandless55/commandbook.git) Java · 163 lines

41 public class FlatFileKitsManager implements KitManager {

42

43 private static final Logger logger = Logger.getLogger("Minecraft.CommandBook");

44 private static final Pattern kitPattern =

45 Pattern.compile("^\\[([^\\]=]+)(?:= *([0-9]+) *)?\\]$");

Bridge.java (https://github.com/Retinue/BetterMechanics.git) Java · 195 lines

30 */

31 public class Bridge {

32 private Logger log = Logger.getLogger("Minecraft");

33 private Sign sign;

34 private Player player;

MinecartLauncher.java (https://github.com/nickeddy/MinecartLauncher.git) Java · 153 lines

21 public class MinecartLauncher extends JavaPlugin {

22

23 private Logger log = Logger.getLogger("Minecraft");

24 private HashSet<Minecart> minecarts = new HashSet<Minecart>();

25

WrappedSpawnManager.java (https://github.com/Noobidoo/commandbook.git) Java · 98 lines

23 * The logger

24 */

25 private final Logger logger = Logger.getLogger("Minecraft.CommandBook");

26

27 /**

EssentialsXMPP.java (https://github.com/BodyshotzVG/Essentials.git) Java · 142 lines

18 public class EssentialsXMPP extends JavaPlugin implements IEssentialsXMPP

19 {

20 private static final Logger LOGGER = Logger.getLogger("Minecraft");

21 private static EssentialsXMPP instance = null;

22 private transient UserManager users;

PromotionCommands.java (https://github.com/t0suj4/PermissionsEx.git) Java · 177 lines

107 this.informPlayer(plugin, user.getName(), "You have been promoted on " + targetGroup.getRankLadder() + " ladder to " + targetGroup.getName() + " group");

108 sender.sendMessage("User " + user.getName() + " promoted to " + targetGroup.getName() + " group");

109 Logger.getLogger("Minecraft").info("User " + user.getName() + " has been promoted to " + targetGroup.getName() + " group on " + targetGroup.getRankLadder() + " ladder by " + promoterName);

110 } catch (RankingException e) {

111 sender.sendMessage(ChatColor.RED + "Promotion error: " + e.getMessage());

112 Logger.getLogger("Minecraft").severe("Ranking Error (" + promoterName + " > " + e.getTarget().getName() + "): " + e.getMessage());

113 }

114 }

151 this.informPlayer(plugin, user.getName(), "You have been demoted on " + targetGroup.getRankLadder() + " ladder to " + targetGroup.getName() + " group");

152 sender.sendMessage("User " + user.getName() + " demoted to " + targetGroup.getName() + " group");

153 Logger.getLogger("Minecraft").info("User " + user.getName() + " has been demoted to " + targetGroup.getName() + " group on " + targetGroup.getRankLadder() + " ladder by " + demoterName);

154 } catch (RankingException e) {

155 sender.sendMessage(ChatColor.RED + "Demotion error: " + e.getMessage());

Economy.java (https://github.com/BodyshotzVG/Essentials.git) Java · 293 lines

20 {

21 }

22 private static final Logger logger = Logger.getLogger("Minecraft");

23 private static IEssentials ess;

24

Economy_GoldIsMoney2.java (https://gitlab.com/MineYourMind/Vault) Java · 316 lines

34

35 public class Economy_GoldIsMoney2 extends AbstractEconomy {

36 private static final Logger log = Logger.getLogger("Minecraft");

37

38 private final String name = "GoldIsMoney";

IRCBot.java (https://github.com/mbax/IRCanary.git) Java · 115 lines

20 this.ircEcho = echo;

21 this.ircSeparator = sep;

22 this.log = Logger.getLogger("Minecraft");

23 this.plugin = ip;

24 this.commandPrefix = startCommand;

LineagePlugin.java (https://github.com/adambratt/Lineage.git) Java · 148 lines

22

23 public class LineagePlugin extends JavaPlugin {

24 private static final Logger log = Logger.getLogger("Minecraft");

25 private boolean eventsRegistered = false;

26 private LineagePlayerListener playerListener;

Bridge.java (https://github.com/GuntherDW/BetterMechanics.git) Java · 167 lines

24 */

25 public class Bridge {

26 private Logger log = Logger.getLogger("Minecraft");

27 private Sign sign;

28 private Player player;

SupplySign.java (https://github.com/ZachBora/SupplySign.git) Java · 175 lines

26 private final SupplySignPlayerListener playerListener = new SupplySignPlayerListener(this);

27 private final HashMap<Player, Boolean> debugees = new HashMap<Player, Boolean>();

28 public final Logger logger = Logger.getLogger("Minecraft");

29

30 public final SupplySignConfig Config = new SupplySignConfig(this);

Chat_zPermissions.java (https://gitlab.com/MineYourMind/Vault) Java · 245 lines

31 public class Chat_zPermissions extends Chat {

32

33 private static final Logger log = Logger.getLogger("Minecraft");

34

35 private final String name = "zPermissions";

PromotionCommands.java (https://github.com/NuclearW/PermissionsEx.git) Java · 175 lines

107 this.informPlayer(plugin, user.getName(), "You have been promoted on " + targetGroup.getRankLadder() + " ladder to " + targetGroup.getName() + " group");

108 sender.sendMessage("User " + user.getName() + " promoted to " + targetGroup.getName() + " group");

109 Logger.getLogger("Minecraft").info("User " + user.getName() + " has been promoted to " + targetGroup.getName() + " group on " + targetGroup.getRankLadder() + " ladder by " + promoterName);

110 } catch (RankingException e) {

111 Logger.getLogger("Minecraft").severe("Ranking Error (" + promoterName + " > " + e.getTarget().getName() + "): " + e.getMessage());

150 this.informPlayer(plugin, user.getName(), "You have been demoted on " + targetGroup.getRankLadder() + " ladder to " + targetGroup.getName() + " group");

151 sender.sendMessage("User " + user.getName() + " demoted to " + targetGroup.getName() + " group");

152 Logger.getLogger("Minecraft").info("User " + user.getName() + " has been demoted to " + targetGroup.getName() + " group on " + targetGroup.getRankLadder() + " ladder by " + demoterName);

153 } catch (RankingException e) {

154 Logger.getLogger("Minecraft").severe("Ranking Error (" + demoterName + " demotes " + e.getTarget().getName() + "): " + e.getMessage());

Lift.java (https://github.com/GuntherDW/BetterMechanics.git) Java · 96 lines

22 */

23 public class Lift {

24 private static final Logger log = Logger.getLogger("Minecraft");

25 private Sign sign;

26 private Player player;

Refinery.java (https://gitlab.com/MineYourMind/MineTweaker3) Java · 202 lines

22 import minetweaker.annotations.ModOnly;

23 import minetweaker.api.liquid.ILiquidStack;

24 import minetweaker.api.minecraft.MineTweakerMC;

25 import net.minecraftforge.fluids.Fluid;

26 import net.minecraftforge.fluids.FluidStack;

27 import stanhebben.zenscript.annotations.Optional;

28 import stanhebben.zenscript.annotations.ZenClass;

45 constructor.setAccessible(true);

46 } catch (NoSuchMethodException ex) {

47 Logger.getLogger(Refinery.class.getName()).log(Level.SEVERE, null, ex);

48 } catch (SecurityException ex) {

49 Logger.getLogger(Refinery.class.getName()).log(Level.SEVERE, null, ex);

55 recipes.setAccessible(true);

56 } catch (NoSuchFieldException ex) {

57 Logger.getLogger(Refinery.class.getName()).log(Level.SEVERE, null, ex);

58 } catch (SecurityException ex) {

59 Logger.getLogger(Refinery.class.getName()).log(Level.SEVERE, null, ex);

Leaderboard.java (https://github.com/krinsdeath/mcMMO.git) Java · 245 lines

17 {

18 static String location = "plugins/mcMMO/FlatFileStuff/mcmmo.users"; //$NON-NLS-1$

19 protected static final Logger log = Logger.getLogger("Minecraft"); //$NON-NLS-1$

20

21 /*

LogAgent.java (https://bitbucket.org/codelore/xserver.git) Java · 219 lines

1 package net.minecraft.logging;

2

3 import cpw.mods.fml.common.FMLLog;

9 import java.util.logging.Level;

10 import java.util.logging.Logger;

11 import net.minecraft.server.MinecraftServer;

12

13 import java.io.File; // CraftBukkit

27 private final String loggerName;

28 private final String loggerPrefix;

29 public static Logger global = Logger.getLogger(""); // CraftBukkit

30

31 public LogAgent(String par1Str, String par2Str, String par3Str)

56 LogFormatter logformatter = new LogFormatter(this, (LogAgentINNER1)null);

57 // CraftBukkit start

58 MinecraftServer server = MinecraftServer.getServer();

59 ConsoleHandler consolehandler = new org.bukkit.craftbukkit.util.TerminalConsoleHandler(server.reader);

60 // CraftBukkit end

MobRuleList.java (https://bitbucket.org/SevenBits/mcpatcher.git) Java · 189 lines

6 import com.prupe.mcpatcher.WeightedIndex;

7 import com.prupe.mcpatcher.mal.biome.BiomeAPI;

8 import net.minecraft.src.ResourceLocation;

9

10 import java.util.*;

11

12 class MobRuleList {

13 private static final MCLogger logger = MCLogger.getLogger(MCPatcherUtils.RANDOM_MOBS);

14

15 public static final String ALTERNATIVES_REGEX = "_(eyes|overlay|tame|angry|collar|fur|invulnerable|shooting)\\.properties$";

EssentialsCommand.java (https://github.com/BodyshotzVG/Essentials.git) Java · 117 lines

19 private final transient String name;

20 protected transient IEssentials ess;

21 protected final static Logger logger = Logger.getLogger("Minecraft");

22

23 protected EssentialsCommand(final String name)

Amaterasu.java (https://github.com/ZachBora/Amaterasu.git) Java · 152 lines

25 public final Set<Player> sneakingjutsuplayers = new HashSet<Player>();

26

27 public final Logger logger = Logger.getLogger("Minecraft");

28

29 public String pdfdescription;

Spleef.java (https://github.com/mrsheen/minecraft-hey0-plugins.git) Java · 140 lines

10 private SpleefListener listener = new SpleefListener();

11

12 static final Logger log = Logger.getLogger("Minecraft");

13 static Location flypoint = new Location();

14 static ArrayList<Location> locationList = new ArrayList<Location>(1);

Colorizer.java (https://bitbucket.org/prupe/mcpatcher.git) Java · 168 lines

9 import com.prupe.mcpatcher.mal.resource.TexturePackAPI;

10 import com.prupe.mcpatcher.mal.resource.TexturePackChangeHandler;

11 import net.minecraft.src.Potion;

12 import net.minecraft.src.ResourceLocation;

13

14 public class Colorizer {

15 private static final MCLogger logger = MCLogger.getLogger(MCPatcherUtils.CUSTOM_COLORS);

16

17 static final ResourceLocation COLOR_PROPERTIES = TexturePackAPI.newMCPatcherResourceLocation("color.properties");

AlphaChestPlugin.java (https://github.com/talmor/AlphaChest-for-Canary.git) Java · 126 lines

20

21 public class AlphaChestPlugin extends JavaPlugin {

22 private static final Logger log = Logger.getLogger("Minecraft");

23

24 private PermissionHandler permissionHandler;

DataSource.java (https://github.com/kpfile/Minecraft-Server-Mod.git) Java · 391 lines

5 import java.util.logging.Level;

6 import java.util.logging.Logger;

7 import net.minecraft.server.MinecraftServer;

8

9 /**

13 public abstract class DataSource {

14

15 protected static final Logger log = Logger.getLogger("Minecraft");

16 protected List<User> users;

17 protected List<String> reserveList;

22 protected List<Warp> warps;

23 protected Map<String, Integer> items;

24 protected MinecraftServer server;

25 protected final Object userLock = new Object(), groupLock = new Object(), kitLock = new Object();

26 protected final Object homeLock = new Object(), warpLock = new Object(), itemLock = new Object();

BlockbagUtil.java (https://github.com/Retinue/BetterMechanics.git) Java · 147 lines

16 */

17 public class BlockbagUtil {

18 private static final Logger log = Logger.getLogger("Minecraft");

19

20 public static boolean safeRemoveItems(Chest chest, ItemStack itemStack)

ArenaGodPlus.java (https://github.com/acstache/MobArenaGod.git) Java · 140 lines

27 public class ArenaGodPlus extends JavaPlugin

28 {

29 private static Logger log = Logger.getLogger("Minecraft");

30 private static PluginDescriptionFile info;

31 private static AGPCommandExecutor agpExecutor;

Log.java (https://github.com/dredhorse/MessageChangerLite.git) Java · 297 lines

63 * Log will be initialized when necessary.

64 *

65 * @param loggerName should be "Minecraft"

66 * @param pluginName the pluginname as string

67 *

127 * will hand over to {@link #Log(java.util.logging.Logger, String, String)}

128 *

129 * @param loggerName should be "Minecraft"

130 * @param pluginName the name of the plugin

131 */

132 private Log(String loggerName, String pluginName) {

133 this(Logger.getLogger(loggerName), pluginName, "");

134 }

135

Lightmap.java (https://bitbucket.org/michael_rodrigues/mcpatcher.git) Java · 138 lines

5 import com.prupe.mcpatcher.MCPatcherUtils;

6 import com.prupe.mcpatcher.TexturePackAPI;

7 import net.minecraft.src.EntityRenderer;

8 import net.minecraft.src.ResourceLocation;

9 import net.minecraft.src.World;

10

11 import java.awt.image.BufferedImage;

13

14 public final class Lightmap {

15 private static final MCLogger logger = MCLogger.getLogger(MCPatcherUtils.CUSTOM_COLORS);

16

17 private static final String LIGHTMAP_FORMAT = "lightmap/world%d.png";

77 float torch = Colorizer.clamp(renderer.torchFlickerX + 0.5f) * (width - 1);

78 float nightVisionStrength = renderer.getNightVisionStrength(partialTick);

79 float gamma = Colorizer.clamp(MCPatcherUtils.getMinecraft().gameSettings.gammaSetting);

80 for (int i = 0; i < LIGHTMAP_SIZE; i++) {

81 interpolate(origMap, i * width, sun, sunrgb, 3 * i);

Mob.java (https://github.com/YellowFellow/Essentials.git) Java · 105 lines

33 SILVERFISH("Silverfish", Enemies.ENEMY, CreatureType.SILVERFISH);

34

35 public static final Logger logger = Logger.getLogger("Minecraft");

36

37 private Mob(String n, Enemies en, String s, CreatureType type)

Snapshot.java (https://github.com/GuntherDW/worldedit-1.git) Java · 212 lines

31 public class Snapshot implements Comparable<Snapshot> {

32

33 protected static Logger logger = Logger.getLogger("Minecraft.WorldEdit");

34 /**

35 * Stores snapshot file.

LauncherUtils.java (https://gitlab.com/Slind/skmclauncher) Java · 213 lines

1 /*

2 * SK's Minecraft Launcher

3 * Copyright (C) 2010, 2011 Albert Pham <http://www.sk89q.com>

4 *

195 */

196 public static Logger getLogger(Class<?> cls) {

197 return Logger.getLogger(cls.getCanonicalName());

198 }

199

FakeServer.java (https://github.com/speedycuban/Essentials.git) Java · 448 lines

256 public Logger getLogger()

257 {

258 return Logger.getLogger("Minecraft");

259 }

260

WaypointPlugin.java (https://github.com/mrsheen/minecraft-hey0-plugins.git) Java · 368 lines

16 public class WaypointPlugin extends Plugin

17 {

18 private static Logger a = Logger.getLogger("Minecraft");

19 private Dictionary<String, User> users = new Hashtable<String, User>();

20 private boolean initialized = false;

35 location.rotY = 0.0F;

36 } catch (NumberFormatException e) {

37 Logger.getLogger("Minecraft").log(Level.SEVERE, "Exception parsing waypoint", e);

38 }

39 } else if(locs.length == 4)

47 location.rotY = 0.0F;

48 } catch (NumberFormatException e) {

49 Logger.getLogger("Minecraft").log(Level.SEVERE, "Exception parsing waypoint", e);

50 }

51 }

CFAuthentication.java (https://github.com/CainFoool/CFAuthentication.git) Java · 223 lines

20 public class CFAuthentication extends JavaPlugin {

21

22 Logger log = Logger.getLogger("Minecraft");

23 public static Configuration cfg;

24

Economy_McMoney.java (https://gitlab.com/MineYourMind/Vault) Java · 247 lines

35

36 public class Economy_McMoney extends AbstractEconomy {

37 private static final Logger log = Logger.getLogger("Minecraft");

38

39 private final String name = "McMoney";

ServerConsoleCommands.java (https://github.com/talmor/CanaryMod.git) Java · 280 lines

3

4 public class ServerConsoleCommands {

5 private static final Logger log = Logger.getLogger("Minecraft");

6 private static ServerConsoleCommands instance;

7 private final LinkedHashMap<String, BaseCommand> commands = new LinkedHashMap<String, BaseCommand>();

MessageCommands.java (https://github.com/arnie231/commandbook.git) Java · 179 lines

29 import com.sk89q.commandbook.events.CommandSenderMessageEvent;

30 import com.sk89q.commandbook.events.SharedMessageEvent;

31 import com.sk89q.minecraft.util.commands.Command;

32 import com.sk89q.minecraft.util.commands.CommandContext;

33 import com.sk89q.minecraft.util.commands.CommandException;

34 import com.sk89q.minecraft.util.commands.CommandPermissions;

36 public class MessageCommands {

37

38 protected static final Logger logger = Logger.getLogger("Minecraft.CommandBook");

39

40 @Command(aliases = {"me"},

aOP.java (https://bitbucket.org/shinji257/aop.git) Java · 86 lines

6

7 public class aOP extends JavaPlugin {

8 protected final static Logger log = Logger.getLogger("Minecraft");

9

10 @Override

BlockPatrolSettings.java (https://github.com/SystexPro/BlockPatrol.git) Java · 149 lines

10

11 import com.bukkit.systexpro.blockpatrol.BlockPatrolPlugin;

12 import com.minecraft.bukkit.util.SQLTools;

13

14 import com.alta189.sqlLibrary.MySQL.*;

23 public String hostname = "localhost";

24 public int hostport = 3306;

25 public String username = "minecraft";

26 public String password = "";

27 public String prefix = "bp_";

31 public File dbFolder = new File("plugins" + File.separator + "BlockPatrol");

32 public String logPrefix = "[BlockPatrol]";

33 public Logger log = Logger.getLogger("Minecraft");

34 //Blacklist

35 public String bannedBlocks = "TNT, BEDROCK";

Messaging.java (https://github.com/bentech/Citizens.git) Java · 109 lines

15

16 public class Messaging {

17 private static final Logger log = Logger.getLogger("Minecraft");

18 private final static String[] colours = { "black", "dblue", "dgreen",

19 "daqua", "dred", "dpurple", "gold", "gray", "dgray", "blue",

FileHandler.java (https://github.com/wing7777/dynmap.git) Java · 121 lines

16

17 public abstract class FileHandler implements HttpHandler {

18 protected static final Logger log = Logger.getLogger("Minecraft");

19

20 private LinkedList<byte[]> bufferpool = new LinkedList<byte[]>();

User.java (https://github.com/zml2008/commandhelper.git) Java · 100 lines

45 } catch (Exception ex) {

46 player.sendMessage("Could not add the alias. Please check the error logs for more information.");

47 Logger.getLogger("Minecraft").log(Level.SEVERE, null, ex);

48 return -1;

49 }

95 persist.save();

96 } catch (Exception ex) {

97 Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);

98 }

99 }