mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 12:00:59 +00:00
Extended names false by default, don't give json on /ld automatically
This commit is contained in:
parent
901c6ef06f
commit
e55f88fc73
4 changed files with 37 additions and 36 deletions
|
@ -397,7 +397,8 @@ public class DisguiseConfig {
|
|||
setEntityStatusPacketsEnabled(config.getBoolean("PacketsEnabled.EntityStatus"));
|
||||
setEquipmentPacketsEnabled(config.getBoolean("PacketsEnabled.Equipment"));
|
||||
setExplicitDisguisePermissions(config.getBoolean("Permissions.ExplicitDisguises"));
|
||||
setExtendedDisguiseNames(config.getBoolean("ExtendedNames"));
|
||||
// The default value shall be false if you don't update config
|
||||
setExtendedDisguiseNames(config.contains("ScoreboardNames") && config.getBoolean("ExtendedNames"));
|
||||
setHideArmorFromSelf(config.getBoolean("RemoveArmor"));
|
||||
setHideDisguisedPlayers(config.getBoolean("HideDisguisedPlayersFromTab"));
|
||||
setHideHeldItemFromSelf(config.getBoolean("RemoveHeldItem"));
|
||||
|
|
|
@ -50,7 +50,10 @@ public class PacketHandlerAttributes implements IPacketHandler {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!disguise.isMiscDisguise()) {
|
||||
if (disguise.isMiscDisguise()) {
|
||||
return;
|
||||
}
|
||||
|
||||
packets.clear();
|
||||
|
||||
List<WrappedAttribute> attributes = new ArrayList<>();
|
||||
|
@ -69,8 +72,7 @@ public class PacketHandlerAttributes implements IPacketHandler {
|
|||
} else {
|
||||
builder = WrappedAttribute.newBuilder();
|
||||
builder.attributeKey("generic.maxHealth");
|
||||
builder.baseValue(
|
||||
DisguiseValues.getDisguiseValues(disguise.getType()).getMaxHealth());
|
||||
builder.baseValue(DisguiseValues.getDisguiseValues(disguise.getType()).getMaxHealth());
|
||||
}
|
||||
|
||||
builder.packet(updateAttributes);
|
||||
|
@ -93,4 +95,3 @@ public class PacketHandlerAttributes implements IPacketHandler {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ SaveDisguises:
|
|||
Entities: false
|
||||
|
||||
# Do names go beyond the 16 char limit for player disguises?
|
||||
ExtendedNames: true
|
||||
ExtendedNames: false
|
||||
# Do names resolve into scoreboard teams so changing the player name is flawless?
|
||||
# This will only work properly for names 28 chars or less in length.
|
||||
# Notch [DragonSlayer lvl: 28]
|
||||
|
|
|
@ -106,7 +106,6 @@ permissions:
|
|||
description: Allows player to get meta info
|
||||
libsdisguises.json:
|
||||
description: Allows player to parse held item to json
|
||||
default: true
|
||||
libsdisguises.scoreboardtest:
|
||||
description: Test if the scoreboard is valid, this is a simple test.
|
||||
libsdisguises.config:
|
||||
|
|
Loading…
Reference in a new issue