Rename tall disguises config option to reset it, was bugged and no one liked default option

This commit is contained in:
libraryaddict 2020-05-11 03:48:34 +12:00
parent 684e57827c
commit 61128dd372
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4
3 changed files with 6 additions and 7 deletions

View File

@ -239,7 +239,7 @@ public class DisguiseConfig {
private static BukkitTask updaterTask; private static BukkitTask updaterTask;
@Getter @Getter
@Setter @Setter
private static boolean hideTallSelfDisguises; private static boolean tallSelfDisguises;
@Getter @Getter
@Setter @Setter
private static PlayerNameType playerNameType = PlayerNameType.TEAMS; private static PlayerNameType playerNameType = PlayerNameType.TEAMS;
@ -647,7 +647,7 @@ public class DisguiseConfig {
setWolfDyeable(config.getBoolean("DyeableWolf")); setWolfDyeable(config.getBoolean("DyeableWolf"));
setTablistRemoveDelay(config.getInt("TablistRemoveDelay")); setTablistRemoveDelay(config.getInt("TablistRemoveDelay"));
setAutoUpdate(config.getBoolean("AutoUpdate")); setAutoUpdate(config.getBoolean("AutoUpdate"));
setHideTallSelfDisguises(config.getBoolean("HideTallSelfDisguises")); setTallSelfDisguises(config.getBoolean("TallSelfDisguises"));
setOverrideCustomNames(config.getBoolean("OverrideCustomNames")); setOverrideCustomNames(config.getBoolean("OverrideCustomNames"));
if (!LibsPremium.isPremium() && (isSavePlayerDisguises() || isSaveEntityDisguises())) { if (!LibsPremium.isPremium() && (isSavePlayerDisguises() || isSaveEntityDisguises())) {

View File

@ -99,7 +99,7 @@ public abstract class Disguise {
private boolean customDisguiseName = true; private boolean customDisguiseName = true;
@Getter @Getter
@Setter @Setter
private boolean tallDisguisesVisible = !DisguiseConfig.isHideTallSelfDisguises(); private boolean tallDisguisesVisible = DisguiseConfig.isTallSelfDisguises();
private String[] multiName = new String[0]; private String[] multiName = new String[0];
private transient int[] armorstandIds = new int[0]; private transient int[] armorstandIds = new int[0];
@ -608,7 +608,7 @@ public abstract class Disguise {
setupWatcher(); setupWatcher();
} }
if (getEntity() instanceof Player && isSelfDisguiseVisible() && isTallDisguisesVisible() && if (getEntity() instanceof Player && isSelfDisguiseVisible() && !isTallDisguisesVisible() &&
!getType().isCustom()) { !getType().isCustom()) {
DisguiseValues values = DisguiseValues.getDisguiseValues(getType()); DisguiseValues values = DisguiseValues.getDisguiseValues(getType());

View File

@ -43,7 +43,6 @@ UpdateConfig: true
# Useful if you didn't purchase the plugin. # Useful if you didn't purchase the plugin.
DisableCommands: false DisableCommands: false
# The disguise plugin stores all GameProfiles inside a folder called "GameProfiles" as a local cache
# This means that the plugin doesn't need to constantly call Mojang just to find a skin for an offline player # This means that the plugin doesn't need to constantly call Mojang just to find a skin for an offline player
# However some people may prefer to disable this. # However some people may prefer to disable this.
# Even if you disable this, if there was disguises in the cache already then it will use them # Even if you disable this, if there was disguises in the cache already then it will use them
@ -128,9 +127,9 @@ UndisguiseRadiusMax: 50
# Best used when viewing yourself in 3rd person # Best used when viewing yourself in 3rd person
ViewSelfDisguises: true ViewSelfDisguises: true
# Some disguises are rather big and tall and block your vision # Some disguises are rather big and tall and block your vision
# By default those disguises are disabled, such as zombies, players, etc. # By default those disguises are enabled despite misgivings, such as zombies, players, etc.
# The baby versions however, should be short enough that it's a non-issue # The baby versions however, should be short enough that it's a non-issue
HideTallSelfDisguises: false TallSelfDisguises: true
# Shall I disguise the sounds? # Shall I disguise the sounds?
# This turns your damage sound into a MOOOO # This turns your damage sound into a MOOOO