Add handy way to tell you what config options you're missing, and check it through LD command
This commit is contained in:
@@ -2,8 +2,10 @@ package me.libraryaddict.disguise.utilities.packets;
|
||||
|
||||
import com.comphenix.protocol.PacketType;
|
||||
import com.comphenix.protocol.events.PacketContainer;
|
||||
import me.libraryaddict.disguise.LibsDisguises;
|
||||
import me.libraryaddict.disguise.disguisetypes.Disguise;
|
||||
import me.libraryaddict.disguise.disguisetypes.DisguiseType;
|
||||
import me.libraryaddict.disguise.utilities.LibsPremium;
|
||||
import me.libraryaddict.disguise.utilities.packets.packethandlers.*;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
@@ -34,7 +36,12 @@ public class PacketsHandler {
|
||||
packetHandlers.add(new PacketHandlerEquipment(this));
|
||||
|
||||
packetHandlers.add(new PacketHandlerHeadRotation());
|
||||
packetHandlers.add(new PacketHandlerMetadata(this));
|
||||
|
||||
// If not prem, if build is from jenkins, else its a custom and needs paid info
|
||||
if (!LibsPremium.isPremium() || LibsDisguises.getInstance().getBuildNo().matches("[0-9]+") || LibsPremium.getPaidInformation() != null) {
|
||||
packetHandlers.add(new PacketHandlerMetadata(this));
|
||||
}
|
||||
|
||||
packetHandlers.add(new PacketHandlerMovement());
|
||||
packetHandlers.add(new PacketHandlerSpawn(this));
|
||||
packetHandlers.add(new PacketHandlerVelocity());
|
||||
|
@@ -265,11 +265,14 @@ public enum LibsMsg {
|
||||
LIBS_SCOREBOARD_NO_TEAM(ChatColor.RED + "Not on a scoreboard team!"),
|
||||
LIBS_SCOREBOARD_NO_TEAM_PUSH(ChatColor.RED + "On scoreboard team '%s' and pushing is enabled!"),
|
||||
LIBS_SCOREBOARD_SUCCESS(ChatColor.GOLD +
|
||||
"On scoreboard team '%s' with pushing disabled! If you're still having issues and you are disguised right now, then " +
|
||||
"you have a plugin modifying scoreboard through packets. Example of this is a plugin that modifies your name above head, or the tablist. Check their configs for pushing disabling options"),
|
||||
"On scoreboard team '%s' with pushing disabled! If you're still having issues and you are disguised right" +
|
||||
" now, then " +
|
||||
"you have a plugin modifying scoreboard through packets. Example of this is a plugin that modifies your " +
|
||||
"name above head, or the tablist. Check their configs for pushing disabling options"),
|
||||
LIBS_SCOREBOARD_DISABLED(
|
||||
"The scoreboard modification has been disabled in config, will continue the debug incase this is intended" +
|
||||
".");
|
||||
"."),
|
||||
USING_DEFAULT_CONFIG(ChatColor.DARK_GREEN + "Using the default config!");
|
||||
|
||||
private String string;
|
||||
|
||||
|
Reference in New Issue
Block a user