100+ results for 'minecraft logger.getlogger'
Not the results you expected?
Chat_PermissionsExC.java (https://gitlab.com/MineYourMind/Vault) Java · 393 lines
Door.java (https://github.com/GuntherDW/BetterMechanics.git) Java · 180 lines
LineRenderer.java (https://bitbucket.org/michael_rodrigues/mcpatcher.git) Java · 173 lines
Economy_BOSE7.java (https://gitlab.com/MineYourMind/Vault) Java · 305 lines
PostHttp.java (https://bitbucket.org/vkorolik/twoleanfour-client.git) Java · 107 lines
Economy_eWallet.java (https://gitlab.com/MineYourMind/Vault) Java · 253 lines
Teleport.java (https://github.com/jeremyroza/Essentials.git) Java · 271 lines
Economy_TAEcon.java (https://gitlab.com/MineYourMind/Vault) Java · 259 lines
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 {
38 private static final Logger log = Logger.getLogger(BukkitPainting.class.getCanonicalName());
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
3 import com.prupe.mcpatcher.*;
4 import net.minecraft.src.Potion;
5 import net.minecraft.src.ResourceLocation;
9 public class Colorizer {
10 private static final MCLogger logger = MCLogger.getLogger(MCPatcherUtils.CUSTOM_COLORS);
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;
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>();
Chat_GroupManager.java (https://gitlab.com/MineYourMind/Vault) Java · 367 lines
Main.java (https://bitbucket.org/pluginmakers/mysqlilogin.git) Java · 213 lines
SaveHandler.java (https://bitbucket.org/vkorolik/twoleanfour-client.git) Java · 261 lines
3 // Decompiler options: packimports(3) braces deadcode fieldsfirst
5 package net.minecraft.src;
7 import java.io.*;
9 import java.util.logging.Logger;
11 // Referenced classes of package net.minecraft.src:
12 // IPlayerFileData, ISaveHandler, MinecraftException, CompressedStreamTools,
18 {
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
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;
12 public class ft {
14 public static Logger a = Logger.getLogger("Minecraft");
15 public List b = new ArrayList();
16 private MinecraftServer c;
25 private cl l;
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 {
45 private static Logger logger = Logger.getLogger("Minecraft.WorldEdit");
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 {
40 private static final Logger log = Logger.getLogger(FlatFilePermissionsResolver.class.getCanonicalName());
42 private Map<String, Set<String>> userPermissionsCache;
WorldGuardCommands.java (https://github.com/talmor/worldguard.git) Java · 147 lines
29 import org.bukkit.entity.Player;
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;
63 LoggerToChatHandler handler = null;
64 Logger minecraftLogger = null;
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
BlockMapper.java (https://github.com/Retinue/BetterMechanics.git) Java · 330 lines
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
ServerPlayerAPI.java (https://bitbucket.org/codelore/xclient.git) Java · 684 lines
1 package net.minecraft.src;
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
CommandMain.java (https://github.com/LittleGruz/Autorun-Commands.git) Java · 639 lines
BlockMapper.java (https://github.com/GuntherDW/BetterMechanics.git) Java · 372 lines
DataSource.java (https://github.com/talmor/CanaryMod.git) Java · 432 lines
7 import java.util.logging.Logger;
9 import net.minecraft.server.MinecraftServer;
11 /**
16 public abstract class DataSource {
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
Chat_mChatSuite.java (https://gitlab.com/MineYourMind/Vault) Java · 284 lines
uselesstools.java (https://github.com/RiseOfDeath/uselesstools.git) Java · 157 lines
Door.java (https://github.com/Retinue/BetterMechanics.git) Java · 203 lines
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
Chat_bPermissions2.java (https://gitlab.com/MineYourMind/Vault) Java · 264 lines
mcPermissions.java (https://github.com/nickrak/mcMMO.git) Java · 331 lines
SpleefData.java (https://github.com/mrsheen/minecraft-hey0-plugins.git) Java · 296 lines
ProtectedBlockJDBC.java (https://github.com/YellowFellow/Essentials.git) Java · 426 lines
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;
15 public class AAHelper {
16 private static final MCLogger logger = MCLogger.getLogger(MCPatcherUtils.MIPMAP);
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);
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 {
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
GlobalRegionManager.java (https://github.com/HaxtorMoogle/worldguard.git) Java · 302 lines
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
Chat_iChat.java (https://gitlab.com/MineYourMind/Vault) Java · 273 lines
Economy_CurrencyCore.java (https://gitlab.com/MineYourMind/Vault) Java · 304 lines
mod_ElementsModItems.java (https://github.com/ElementsMod/Project-Syne.git) Java · 1251 lines
RegionHandler.java (https://github.com/IBCodin/AutoRegionGuard.git) Java · 404 lines
AcceptRulesMain.java (https://github.com/rigor789/AcceptRules.git) Java · 126 lines
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();
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
PreciousStones.java (https://github.com/FreezyExp/PreciousStones.git) Java · 370 lines
ConsoleCommandHandler.java (https://github.com/fouram/mc-dev.git) Java · 348 lines
1 package net.minecraft.server;
3 import java.util.Iterator;
7 public class ConsoleCommandHandler {
9 private static Logger a = Logger.getLogger("Minecraft");
10 private MinecraftServer server;
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
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;
128 public void errorChat(String message) {
129 Minecraft.getMinecraft().ingameGUI.getChatGUI().printChatMessage(new TextComponentString("\2477[Seppuku]\247c " + message));
130 }
136 public void logChat(String message) {
137 Minecraft.getMinecraft().ingameGUI.getChatGUI().printChatMessage(new TextComponentString("\2477[Seppuku]\247f " + message));
138 }
140 public void logcChat(ITextComponent textComponent) {
141 Minecraft.getMinecraft().ingameGUI.getChatGUI().printChatMessage(new TextComponentString("\2477[Seppuku]\247f ").appendSibling(textComponent));
142 }
ProfessionsPlus.java (https://github.com/aRt3m1s/ProfessionsPlus.git) Java · 107 lines
sethomeCommand.java (https://github.com/bukkitdev/Fiery.git) Java · 186 lines
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.*;
17 import java.util.*;
19 public class CTMUtils {
20 private static final MCLogger logger = MCLogger.getLogger(MCPatcherUtils.CONNECTED_TEXTURES, "CTM");
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;
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;
3 import java.io.DataInputStream;
14 public class PlayerNBTManager implements PlayerFileData, IDataManager {
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;
3 import net.minecraft.src.Icon;
4 import net.minecraft.src.Tessellator;
5 import net.minecraft.src.TextureAtlas;
7 import java.lang.reflect.Field;
14 public class TessellatorUtils {
15 private static final MCLogger logger = MCLogger.getLogger("Tilesheet");
17 private static final Integer MAGIC_VALUE = 0x12345678;
Loic.java (https://github.com/LordLladar/Low-Orbit-Ion-Cannon.git) Java · 231 lines
TameGrass.java (https://github.com/Yuri4171/TameGrass.git) Java · 247 lines
NetPacketThread.java (https://github.com/Clintonio/NetAPI.git) Java · 327 lines
SuperPoke.java (https://github.com/polaris120990/Super-Poke.git) Java · 165 lines
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 {
41 private static final Logger log = Logger.getLogger(ReparametrisingInterpolation.class.getCanonicalName());
43 private final Interpolation baseInterpolation;
SignBlockListener.java (https://github.com/YellowFellow/Essentials.git) Java · 259 lines
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;
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 {
44 private static final Logger logger = Logger.getLogger("Minecraft.WorldEdit");
46 private final WorldEdit we;
Chat_rscPermissions.java (https://gitlab.com/MineYourMind/Vault) Java · 214 lines
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;
11 /**
15 public abstract class DataSource {
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
Economy_SDFEconomy.java (https://gitlab.com/MineYourMind/Vault) Java · 229 lines
Admin.java (https://github.com/FunnyJ2/AdminAssistorDev.git) Java · 170 lines
Economy_EconXP.java (https://gitlab.com/MineYourMind/Vault) Java · 276 lines
SaveHandler.java (https://bitbucket.org/kingbowser/stormclient.git) Java · 219 lines
3 // Decompiler options: packimports(3) braces deadcode fieldsfirst
5 package net.minecraft.src;
7 import java.io.*;
9 import java.util.logging.Logger;
11 // Referenced classes of package net.minecraft.src:
12 // ISaveHandler, MinecraftException, WorldProviderHell, ChunkLoader,
18 {
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;
11 import java.util.*;
13 class MobRuleList {
14 private static final MCLogger logger = MCLogger.getLogger(MCPatcherUtils.RANDOM_MOBS);
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
EJBClientReconnectionTestCase.java (https://github.com/maschmid/jboss-as.git) Java · 151 lines
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
Chat_bPermissions.java (https://gitlab.com/MineYourMind/Vault) Java · 263 lines
EssentialsGeoIPPlayerListener.java (https://github.com/BodyshotzVG/Essentials.git) Java · 178 lines
DroneDestructor.java (https://github.com/ppitonak/arquillian-extension-drone.git) Java · 126 lines
gamemode.java (https://github.com/scranner/GameMode.git) Java · 258 lines
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 {
31 private static final Logger log = Logger.getLogger(ShallowObjectReport.class.getCanonicalName());
33 public ShallowObjectReport(String title, Object object) {
FlatFileKitsManager.java (https://github.com/bandless55/commandbook.git) Java · 163 lines
Bridge.java (https://github.com/Retinue/BetterMechanics.git) Java · 195 lines
MinecartLauncher.java (https://github.com/nickeddy/MinecartLauncher.git) Java · 153 lines
WrappedSpawnManager.java (https://github.com/Noobidoo/commandbook.git) Java · 98 lines
EssentialsXMPP.java (https://github.com/BodyshotzVG/Essentials.git) Java · 142 lines
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
Economy_GoldIsMoney2.java (https://gitlab.com/MineYourMind/Vault) Java · 316 lines
IRCBot.java (https://github.com/mbax/IRCanary.git) Java · 115 lines
LineagePlugin.java (https://github.com/adambratt/Lineage.git) Java · 148 lines
Bridge.java (https://github.com/GuntherDW/BetterMechanics.git) Java · 167 lines
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");
30 public final SupplySignConfig Config = new SupplySignConfig(this);
Chat_zPermissions.java (https://gitlab.com/MineYourMind/Vault) Java · 245 lines
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
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
LogAgent.java (https://bitbucket.org/codelore/xserver.git) Java · 219 lines
1 package net.minecraft.logging;
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;
13 import java.io.File; // CraftBukkit
27 private final String loggerName;
28 private final String loggerPrefix;
29 public static Logger global = Logger.getLogger(""); // CraftBukkit
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;
10 import java.util.*;
12 class MobRuleList {
13 private static final MCLogger logger = MCLogger.getLogger(MCPatcherUtils.RANDOM_MOBS);
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
Amaterasu.java (https://github.com/ZachBora/Amaterasu.git) Java · 152 lines
Spleef.java (https://github.com/mrsheen/minecraft-hey0-plugins.git) Java · 140 lines
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;
14 public class Colorizer {
15 private static final MCLogger logger = MCLogger.getLogger(MCPatcherUtils.CUSTOM_COLORS);
17 static final ResourceLocation COLOR_PROPERTIES = TexturePackAPI.newMCPatcherResourceLocation("color.properties");
AlphaChestPlugin.java (https://github.com/talmor/AlphaChest-for-Canary.git) Java · 126 lines
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;
9 /**
13 public abstract class DataSource {
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
ArenaGodPlus.java (https://github.com/acstache/MobArenaGod.git) Java · 140 lines
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 }
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;
11 import java.awt.image.BufferedImage;
14 public final class Lightmap {
15 private static final MCLogger logger = MCLogger.getLogger(MCPatcherUtils.CUSTOM_COLORS);
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
Snapshot.java (https://github.com/GuntherDW/worldedit-1.git) Java · 212 lines
LauncherUtils.java (https://gitlab.com/Slind/skmclauncher) Java · 213 lines
FakeServer.java (https://github.com/speedycuban/Essentials.git) Java · 448 lines
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
Economy_McMoney.java (https://gitlab.com/MineYourMind/Vault) Java · 247 lines
ServerConsoleCommands.java (https://github.com/talmor/CanaryMod.git) Java · 280 lines
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 {
38 protected static final Logger logger = Logger.getLogger("Minecraft.CommandBook");
40 @Command(aliases = {"me"},
aOP.java (https://bitbucket.org/shinji257/aop.git) Java · 86 lines
BlockPatrolSettings.java (https://github.com/SystexPro/BlockPatrol.git) Java · 149 lines
11 import com.bukkit.systexpro.blockpatrol.BlockPatrolPlugin;
12 import com.minecraft.bukkit.util.SQLTools;
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
FileHandler.java (https://github.com/wing7777/dynmap.git) Java · 121 lines
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 }