This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PluginDownloader { | |
public boolean exists(String path) { | |
try { | |
HttpURLConnection urlConn = (HttpURLConnection) new URL(path).openConnection(); | |
urlConn.setConnectTimeout(1000 * 10); | |
urlConn.connect(); | |
return urlConn.getResponseCode() == HttpURLConnection.HTTP_OK; | |
} catch (MalformedURLException e) { | |
System.err.println("The URL given <" + path + "> was not found!"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.minecraft.src; | |
import java.util.List; | |
import java.util.Random; | |
public class Block | |
{ | |
/** | |
* used as foreach item, if item.tab = current tab, display it on the screen | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.Icyene.bytecode.generation; | |
import com.github.Icyene.bytecode.introspection.internal.Member; | |
import com.github.Icyene.bytecode.introspection.internal.code.ExceptionPool; | |
import com.github.Icyene.bytecode.introspection.internal.members.TryCatch; | |
import com.github.Icyene.bytecode.introspection.internal.members.attributes.Code; | |
import com.github.Icyene.bytecode.introspection.internal.metadata.readers.SignatureReader; | |
import com.github.Icyene.bytecode.introspection.util.ByteStream; | |
import com.github.Icyene.bytecode.introspection.util.Bytes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19:55:59 [SEVERE] net.minecraft.server.ReportedException: Ticking entity | |
19:56:00 [SEVERE] at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:573) | |
19:56:00 [SEVERE] at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:223) | |
19:56:00 [SEVERE] at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:482) | |
19:56:00 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:417) | |
19:56:00 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:849) | |
19:56:00 [SEVERE] Caused by: java.lang.NoSuchMethodError: net.minecraft.server.EntityCreeper.aG()Lnet/minecraft/server/EntityLiving; | |
19:56:00 [SEVERE] at net.minecraft.server.PathfinderGoalSwell.a(SourceFile:18) | |
19:56:00 [SEVERE] at net.minecraft.server.PathfinderGoalSelector.a(PathfinderGoalSelector.java:66) | |
19:56:00 [SEVERE] at net.minecraft.server.EntityLiving.bl(EntityLiving.java:1480) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instrumenting class: com/github/Icyene/BytecodeStudio/disassembler/profiler/Test/Agent$Profile | |
com/github/Icyene/BytecodeStudio/disassembler/internal/ClassFile <init> start 1354665369937 | |
Instrumenting class: com/github/Icyene/BytecodeStudio/disassembler/util/Bytes | |
Returning reinstrumented class: com/github/Icyene/BytecodeStudio/disassembler/util/Bytes | |
com/github/Icyene/BytecodeStudio/disassembler/util/Bytes read start 1354665369968 | |
com/github/Icyene/BytecodeStudio/disassembler/util/Bytes read start 1354665369984 | |
com/github/Icyene/BytecodeStudio/disassembler/util/Bytes read end 1354665369984 | |
com/github/Icyene/BytecodeStudio/disassembler/util/Bytes read end 1354665369984 | |
com/github/Icyene/BytecodeStudio/disassembler/internal/ClassFile <init> start 1354665369984 | |
Instrumenting class: com/github/Icyene/BytecodeStudio/disassembler/util/ByteStream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.Constructor; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Method; | |
import java.lang.reflect.Modifier; | |
public class ReflectionHelper { | |
public static <T> FieldContainer<T> field(String name) { | |
return new FieldContainer<T>(name); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.common.collect.Sets; | |
import org.apache.commons.lang.ArrayUtils; | |
import org.apache.commons.lang.StringUtils; | |
import org.bukkit.ChatColor; | |
import org.bukkit.command.*; | |
import org.bukkit.entity.Player; | |
import org.bukkit.plugin.Plugin; | |
import org.bukkit.plugin.SimplePluginManager; | |
import java.lang.annotation.ElementType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A class for saving/loading lazy configuration classes/files. | |
* Based on codename_B's non static config 'offering' :) | |
* Inspired by md_5's easy config | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net.minecraft.server.v1_4_R1.CrashReport; | |
import net.minecraft.server.v1_4_R1.MinecraftServer; | |
import org.apache.commons.lang.exception.ExceptionUtils; | |
import org.bukkit.Bukkit; | |
import org.bukkit.craftbukkit.v1_4_R1.CraftServer; | |
import org.bukkit.plugin.Plugin; | |
import org.bukkit.plugin.PluginLogger; | |
import org.bukkit.plugin.java.JavaPlugin; | |
import org.json.simple.JSONObject; | |
import org.json.simple.JSONValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.StormTeam.Storm; | |
import net.minecraft.server.MinecraftServer; | |
import org.apache.commons.lang.StringUtils; | |
import org.apache.commons.lang.exception.ExceptionUtils; | |
import org.bukkit.Bukkit; | |
import org.bukkit.craftbukkit.CraftServer; | |
import org.bukkit.plugin.Plugin; | |
import org.bukkit.plugin.PluginLogger; | |
import org.bukkit.plugin.java.JavaPlugin; |