Temporarily commented out setAllowSleep for now until it can be fixed later

Updated config.yml
Updated plugin.yml
Updated plugin for latest spigot builds and latest ProtocolLib build
This commit is contained in:
NavidK0 2015-04-13 01:25:48 -04:00
parent 1ce661847d
commit 32f37b74e2
4 changed files with 10 additions and 5 deletions

View File

@ -1,4 +1,6 @@
apply plugin: 'java'
plugins {
id 'java'
}
println 'Compiling LibsDisguises via Gradle ver. ' + gradle.gradleVersion

View File

@ -26,6 +26,8 @@ import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import com.comphenix.protocol.wrappers.WrappedGameProfile;
import net.minecraft.server.v1_8_R2.EntityPlayer;
import net.minecraft.server.v1_8_R2.PlayerConnection;
import org.bukkit.potion.PotionEffect;
public class ReflectionManager {
@ -610,10 +612,11 @@ public class ReflectionManager {
public static void setAllowSleep(Player player) {
try {
/**
Object nmsEntity = getNmsEntity(player);
Object connection = getNmsField(nmsEntity.getClass(), "playerConnection").get(nmsEntity);
Field check = getNmsField(connection.getClass(), "checkMovement");
check.setBoolean(connection, true);
check.setBoolean(connection, true); **/
} catch (Exception ex) {
ex.printStackTrace(System.out);
}

View File

@ -8,13 +8,13 @@ DisguiseRadiusMax: 50
UndisguiseRadiusMax: 50
# Shall the players view their disguises?
# Best used when viewing yourself in 3rd person
ViewSelfDisguises: false
ViewSelfDisguises: true
# Shall I disguise the sounds?
# This turns your damage sound into a MOOOO
DisguiseSounds: true
# Shall the disguised hear their disguise sounds or their damage sounds.
# I disable this as it can be a little confusing when not used with self disguises
HearSelfDisguise: false
HearSelfDisguise: true
# Shall I send the velocity packets? I REALLY recommend you don't disable.
# This is the only thing allowing the mobs to fly without glitching out.
SendVelocity: true

View File

@ -1,6 +1,6 @@
name: LibsDisguises
main: me.libraryaddict.disguise.LibsDisguises
version: 8.3.1
version: 8.3.2
author: libraryaddict
authors: [Byteflux, Navid K.]
depend: [ProtocolLib]