My collection of scripts for Discord.
friend_invitelink.js
: Generate a friend invite linkclientside_nitro.js
: Spoof the client and enable client side Discord Nitro
import java.lang.foreign.*; | |
import java.lang.invoke.MethodHandle; | |
import java.lang.invoke.MethodHandles; | |
import java.lang.invoke.VarHandle; | |
import java.lang.reflect.Field; | |
public class ImplLookupGetter { | |
public static final MethodHandles.Lookup IMPL_LOOKUP; | |
public static final int JNI_VERSION_21 = 0x00150000; |
package net.burningtnt.javatest; | |
import java.lang.foreign.*; | |
import java.lang.invoke.MethodHandle; | |
import java.lang.invoke.MethodHandles; | |
public class TrustedLookupAccessor { | |
public static void main(String[] args) throws Throwable { | |
initialize(); |
/// Takes a symbolic type constant and returns its size | |
/// Probably missing a few types but those were the most important | |
size_t get_sizeof_type(GLenum type) | |
{ | |
switch(type) | |
{ | |
case GL_BYTE: | |
case GL_UNSIGNED_BYTE: | |
return sizeof(GLbyte); | |
case GL_SHORT: |
By looking that you are here you most likely use Cardboard/Banner/some other weird bukkit + Fabric project (or just someone linked to it).
Don't do it, it will cause more harm/instabilities to your server than good. But let's start at the beginning.
Few definitions before we start:
// To subscribe to an event, pass this JSON text to the client through the WebSocket: | |
{ | |
"body": { | |
"eventName": "NameOfEvent" // Replace with an event name listed below | |
}, | |
"header": { | |
"requestId": "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxx", // UUID | |
"messagePurpose": "subscribe", | |
"version": 1, // Protocol version (currently 1 as-of 1.0.2) |