#include <jni.h>
#include <dlfcn.h>
#include <stdlib.h>
#include <string>
#include <mcpe/entity/player/Player.h>
#include <MsHook.h>
static void (*_Player_die)(Player *,EntityDamageSource const&);
static void Player_die(Player *p,EntityDamageSource const&eds){
//_Player_die(NULL,eds);
}
JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
MSHookFunction((void *)&Player::die,(void *)Player_die,(void **)&_Player_die);
return JNI_VERSION_1_2;
}
#include <dlfcn.h>
#include <stdlib.h>
#include <string>
#include <mcpe/entity/player/Player.h>
#include <MsHook.h>
static void (*_Player_die)(Player *,EntityDamageSource const&);
static void Player_die(Player *p,EntityDamageSource const&eds){
//_Player_die(NULL,eds);
}
JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
MSHookFunction((void *)&Player::die,(void *)Player_die,(void **)&_Player_die);
return JNI_VERSION_1_2;
}









