File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/main/java/me/glaremasters/guilds/commands/management Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 3030
3131 <groupId >me.glaremasters</groupId >
3232 <artifactId >guilds</artifactId >
33- <version >3.5.3.6 -RELEASE</version >
33+ <version >3.5.3.7 -RELEASE</version >
3434 <packaging >jar</packaging >
3535
3636 <name >Guilds</name >
Original file line number Diff line number Diff line change 3232import co .aikar .commands .annotation .Dependency ;
3333import co .aikar .commands .annotation .Description ;
3434import co .aikar .commands .annotation .Subcommand ;
35+ import me .glaremasters .guilds .Guilds ;
3536import me .glaremasters .guilds .actions .ActionHandler ;
3637import me .glaremasters .guilds .actions .ConfirmAction ;
3738import me .glaremasters .guilds .configuration .sections .PluginSettings ;
5859@ CommandAlias ("%guilds" )
5960public class CommandUpgrade extends BaseCommand {
6061
62+ @ Dependency private Guilds guilds ;
6163 @ Dependency private GuildHandler guildHandler ;
6264 @ Dependency private ActionHandler actionHandler ;
6365 @ Dependency private SettingsManager settingsManager ;
@@ -108,7 +110,7 @@ public void accept() {
108110
109111 guild .setBalance (balance - upgradeCost );
110112
111- if (!settingsManager .getProperty (TierSettings .CARRY_OVER )) {
113+ if (!guilds . getSettingsHandler (). getTierSettings () .getProperty (TierSettings .CARRY_OVER )) {
112114 guildHandler .removePermsFromAll (permission , guild , settingsManager .getProperty (PluginSettings .RUN_VAULT_ASYNC ));
113115 }
114116
You can’t perform that action at this time.
0 commit comments