Re-enable force checkstyle check

This commit is contained in:
games647
2022-07-11 12:24:54 +02:00
parent 06b0cf9e02
commit 423bfa2275
2 changed files with 2 additions and 3 deletions

View File

@ -132,7 +132,7 @@
<configuration> <configuration>
<configLocation>checkstyle.xml</configLocation> <configLocation>checkstyle.xml</configLocation>
<consoleOutput>true</consoleOutput> <consoleOutput>true</consoleOutput>
<failsOnError>false</failsOnError> <failsOnError>true</failsOnError>
<linkXRef>false</linkXRef> <linkXRef>false</linkXRef>
</configuration> </configuration>
<dependencies> <dependencies>

View File

@ -96,8 +96,7 @@ public class AsyncToggleMessage implements Runnable {
playerProfile.setPremium(true); playerProfile.setPremium(true);
core.getStorage().save(playerProfile); core.getStorage().save(playerProfile);
PremiumToggleReason reason = (!isPlayerSender || !senderName.equalsIgnoreCase(playerProfile.getName())) PremiumToggleReason reason = (!isPlayerSender || !senderName.equalsIgnoreCase(playerProfile.getName()))
? ? PremiumToggleReason.COMMAND_OTHER : PremiumToggleReason.COMMAND_SELF;
PremiumToggleReason.COMMAND_OTHER : PremiumToggleReason.COMMAND_SELF;
core.getPlugin().getProxy().getEventManager().fire( core.getPlugin().getProxy().getEventManager().fire(
new VelocityFastLoginPremiumToggleEvent(playerProfile, reason)); new VelocityFastLoginPremiumToggleEvent(playerProfile, reason));
sendMessage("add-premium"); sendMessage("add-premium");