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 yourPackage1.yourPackage2; | |
import java.lang.reflect.Field; | |
import java.util.HashMap; | |
import net.minecraft.server.v1_7_R1.DataWatcher; | |
import net.minecraft.server.v1_7_R1.EntityPlayer; | |
import net.minecraft.server.v1_7_R1.Packet; | |
import net.minecraft.server.v1_7_R1.PacketPlayInClientCommand; | |
import net.minecraft.server.v1_7_R1.PacketPlayOutSpawnEntityLiving; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration> | |
<Appenders> | |
<File name="legacy_server_log" fileName="server.log"> | |
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} [%level] %msg%n" /> | |
</File> | |
<Console name="console" target="SYSTEM_OUT"> | |
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} [%level] %msg%n" /> | |
</Console> |
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 tc.oc.pgm.utils; | |
/** | |
* Direct port of the JavaScript LiquidMetal. | |
* https://github.com/rmm5t/liquidmetal | |
* | |
* @author Steve Anton | |
*/ | |
public class LiquidMetal { | |
public static final double SCORE_NO_MATCH = 0.0; |
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
from os import chdir, path | |
from tempfile import mkdtemp | |
from shutil import rmtree | |
from struct import pack | |
from subprocess import check_output | |
def jar_contents(j_path): | |
return check_output(['jar', 'tf', j_path]).split("\n") | |
def jar_extract(j_path): |