Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command_disguisetoggle.java #1872

Closed
ghost opened this issue Sep 21, 2016 · 1 comment
Closed

Command_disguisetoggle.java #1872

ghost opened this issue Sep 21, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 21, 2016

Line 37 of the file located at: TotalFreedomMod/src/main/java/me/totalfreedom/totalfreedommod/command/Command_disguisetoggle.java from the branch tfm5.1-mc1.10 reads this:

msg("Enabled " + (DisallowedDisguises.disabled ? "enabled." : "disabled."));

This results in an error.
When the plugin is disabled/enabled it displays the opposite message of it's state, that is, when the plugin is enabled it says it messages you that it is disabled, and vice versa. Also, when you are messaged it does not message you "Disguises enabled" as it should, instead it messages you "Enabled enabled" and "Enabled disabled", which in my opinion doesn't make much sense.

To fix these errors simply changed line 37 to read this:

msg("Disguises " + (DisallowedDisguises.disabled ? "disabled." : "enabled."));

or

msg("Disguises " + (!DisallowedDisguises.disabled ? "enabled." : "disabled."));

Thanks for reading!

@lemonsked
Copy link
Member

Or just use !DisallowedDisguises.disabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants