Add ability to have self disguises off by default
This commit is contained in:
parent
e2dae58034
commit
df158c416e
@ -268,6 +268,9 @@ public class DisguiseConfig {
|
|||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
private static int playerDisguisesSkinExpiresMove;
|
private static int playerDisguisesSkinExpiresMove;
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
private static boolean viewSelfDisguisesDefault;
|
||||||
|
|
||||||
public static boolean isArmorstandsName() {
|
public static boolean isArmorstandsName() {
|
||||||
return getPlayerNameType() == PlayerNameType.ARMORSTANDS;
|
return getPlayerNameType() == PlayerNameType.ARMORSTANDS;
|
||||||
@ -716,6 +719,7 @@ public class DisguiseConfig {
|
|||||||
setRandomDisguises(config.getBoolean("RandomDisguiseOptions"));
|
setRandomDisguises(config.getBoolean("RandomDisguiseOptions"));
|
||||||
setSaveUserPreferences(config.getBoolean("SaveUserPreferences"));
|
setSaveUserPreferences(config.getBoolean("SaveUserPreferences"));
|
||||||
setPlayerDisguisesSkinExpiresMove(config.getInt("PlayerDisguisesTablistExpiresMove"));
|
setPlayerDisguisesSkinExpiresMove(config.getInt("PlayerDisguisesTablistExpiresMove"));
|
||||||
|
setViewSelfDisguisesDefault(config.getBoolean("ViewSelfDisguisesDefault"));
|
||||||
|
|
||||||
if (!LibsPremium.isPremium() && (isSavePlayerDisguises() || isSaveEntityDisguises())) {
|
if (!LibsPremium.isPremium() && (isSavePlayerDisguises() || isSaveEntityDisguises())) {
|
||||||
DisguiseUtilities.getLogger().warning("You must purchase the plugin to use saved disguises!");
|
DisguiseUtilities.getLogger().warning("You must purchase the plugin to use saved disguises!");
|
||||||
|
@ -57,7 +57,7 @@ public abstract class Disguise {
|
|||||||
private boolean replaceSounds = DisguiseConfig.isSoundEnabled();
|
private boolean replaceSounds = DisguiseConfig.isSoundEnabled();
|
||||||
private boolean mobsIgnoreDisguise;
|
private boolean mobsIgnoreDisguise;
|
||||||
private boolean velocitySent = DisguiseConfig.isVelocitySent();
|
private boolean velocitySent = DisguiseConfig.isVelocitySent();
|
||||||
private boolean viewSelfDisguise = DisguiseConfig.isViewDisguises();
|
private boolean viewSelfDisguise = DisguiseConfig.isViewDisguises() && DisguiseConfig.isViewSelfDisguisesDefault();
|
||||||
@Getter
|
@Getter
|
||||||
private DisguiseConfig.NotifyBar notifyBar = DisguiseConfig.getNotifyBar();
|
private DisguiseConfig.NotifyBar notifyBar = DisguiseConfig.getNotifyBar();
|
||||||
@Getter
|
@Getter
|
||||||
|
@ -135,6 +135,9 @@ UndisguiseRadiusMax: 50
|
|||||||
# Shall the players view their disguises?
|
# Shall the players view their disguises?
|
||||||
# Best used when viewing yourself in 3rd person
|
# Best used when viewing yourself in 3rd person
|
||||||
ViewSelfDisguises: true
|
ViewSelfDisguises: true
|
||||||
|
# Are self disguises enabled by default
|
||||||
|
# Default is true
|
||||||
|
ViewSelfDisguisesDefault: 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 enabled despite misgivings, such as zombies, players, etc.
|
# By default those disguises are enabled despite misgivings, such as zombies, players, etc.
|
||||||
|
Loading…
Reference in New Issue
Block a user