Skip to content

Commit 0be0806

Browse files
committed
Fix changes to global assignment via commands not being saved to config
1 parent acabb28 commit 0be0806

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/src/main/java/de/themoep/resourcepacksplugin/core/commands/ResourcepacksPluginCommandExecutor.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,10 @@ public boolean run(ResourcepacksPlayer sender, String[] args) {
243243
new PluginCommandExecutor(plugin, this, "globalassignment", null, "global") {
244244
@Override
245245
public boolean run(ResourcepacksPlayer sender, String[] args) {
246-
return plugin.getPackManager().getGlobalAssignment().update(this, sender, args);
246+
boolean success = plugin.getPackManager().getGlobalAssignment().update(this, sender, args);
247+
plugin.getPackManager().setDirty(true);
248+
plugin.getPackManager().checkDirty();
249+
return success;
247250
}
248251

249252
@Override

0 commit comments

Comments
 (0)