View PluginFixer.java
package ps.eden.server.plugin;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.HashMap;
View RawLoadConverter.kt
import java.io.File
import java.nio.file.Files
const val PLUGIN_FOLDER_PATH = "src/main/java/plugin/"
const val ANNOTATION = "@InitializablePlugin"
const val IMPORT = "import ps.eden.server.plugin.InitializablePlugin;"
fun main(args: Array<String>) {
val pluginFolder = File(PLUGIN_FOLDER_PATH)
View createTarGz.kt
fun createTarGz(`in`: File, out: File) {
val fOut = FileOutputStream(out)
val bOut = BufferedOutputStream(fOut)
val gzOut = GzipCompressorOutputStream(bOut)
TarArchiveOutputStream(gzOut).use {
addFileToTarGz(it, `in`, "")
it.finish()
}
}
View gist:26646a3f7b016d0926c55f0366e42d8c
ItemDef itemDef = forID(lendTemplateID);
inventoryOptions = new String[5];
groundModel = itemDef.groundModel;
modelOffset1 = itemDef.modelOffset1;
modelRotation2 = itemDef.modelRotation2;
modelOffset2 = itemDef.modelOffset2;
modelZoom = itemDef.modelZoom;
modelRotation1 = itemDef.modelRotation1;
anInt204 = itemDef.anInt204;
value = 0;
View netvars.txt
DT_TestTraceline.m_clrRender (0x70)
DT_TestTraceline.m_vecOrigin (0x134)
DT_TestTraceline.m_angRotation[0] (0x128)
DT_TestTraceline.m_angRotation[1] (0x12c)
DT_TestTraceline.m_angRotation[2] (0x130)
DT_TestTraceline.moveparent (0x144)
DT_TEWorldDecal.m_vecOrigin (0x10)
DT_TEWorldDecal.m_nIndex (0x1c)
DT_TESpriteSpray.m_vecOrigin (0x10)
DT_TESpriteSpray.m_vecDirection (0x1c)
View BunnyHop.kts
import life.cheat.Environment.client
import life.cheat.script.Script
import java.awt.event.KeyEvent
onGround {
pressKey(KeyEvent.VK_SPACE)
sleep(20)
releaseKey(KeyEvent.VK_SPACE)
}
View knetty udp
package org.jire.knetty
import io.netty.bootstrap.Bootstrap
import io.netty.buffer.ByteBuf
import io.netty.channel.*
import io.netty.channel.nio.NioEventLoopGroup
import io.netty.channel.socket.DatagramChannel
import io.netty.channel.socket.DatagramPacket
import io.netty.channel.socket.nio.NioDatagramChannel
import io.netty.handler.codec.MessageToMessageDecoder
View VisionID.java
public final class VisionID {
public static void main(String[] args) {
long a = Byte.toUnsignedLong((byte) 68);
long b = Byte.toUnsignedLong((byte) 199);
long c = Byte.toUnsignedLong((byte) 163);
long d = Byte.toUnsignedLong((byte) 44);
long port = Short.toUnsignedLong((short) 65535);
long ip = (a << 40) | (b << 32) | (c << 24) | (d << 16) | port;
View gist:72159ac32778a25f86d8e42161ede08f
import it.unimi.dsi.fastutil.longs.Long2FloatArrayMap
import org.jire.strukt.Strukt
import kotlin.reflect.KProperty
class FloatMember(private val default: Float) : Member() {
private val current = Long2FloatArrayMap()
operator fun getValue(ref: Strukt, prop: KProperty<*>) = current[key]
View gist:df9c99fac5e4d3f35e1a6c517716f989
inline fun <reified T : Any, DELEGATE : Any> findDelegate(
instance: T, delegatingTo: KClass<DELEGATE>): DELEGATE? {
for (prop in T::class.declaredMemberProperties) {
val javaField = prop.javaField ?: continue
javaField.isAccessible = true // is private, have to open that up
if (delegatingTo.java.isAssignableFrom(javaField.type)) {
@Suppress("UNCHECKED_CAST")
return javaField.get(instance) as DELEGATE
}