Add missing wrapper for classchest location setter.

This commit is contained in:
garbagemule
2013-08-16 05:48:18 +02:00
parent a2328c7271
commit 22a8f43fce
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
name: MobArena
author: garbagemule
main: com.garbagemule.MobArena.MobArena
version: 0.95.5.21
version: 0.95.5.22
softdepend: [Multiverse-Core,Towny,Heroes,MagicSpells,Vault]
commands:
ma:
@@ -7,10 +7,13 @@ import com.garbagemule.MobArena.commands.Command;
import com.garbagemule.MobArena.commands.CommandInfo;
import com.garbagemule.MobArena.commands.Commands;
import com.garbagemule.MobArena.framework.ArenaMaster;
import com.garbagemule.MobArena.util.config.ConfigUtils;
import org.bukkit.block.Block;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import static com.garbagemule.MobArena.util.config.ConfigUtils.setLocation;
@CommandInfo(
name = "classchest",
pattern = "classchest",
@@ -51,7 +54,7 @@ public class ClassChestCommand implements Command {
return true;
}
am.getPlugin().getConfig().set("classes." + ac.getConfigName() + ".classchest", b.getLocation());
setLocation(am.getPlugin().getConfig(), "classes." + ac.getConfigName() + ".classchest", b.getLocation());
am.saveConfig();
Messenger.tell(sender, "Class chest updated for class " + ac.getConfigName());
am.loadClasses();