diff --git a/src/main/java/de/iani/treasurechest/TreasureChest.java b/src/main/java/de/iani/treasurechest/TreasureChest.java index 33a2401..bd4889b 100644 --- a/src/main/java/de/iani/treasurechest/TreasureChest.java +++ b/src/main/java/de/iani/treasurechest/TreasureChest.java @@ -5,8 +5,6 @@ import java.util.UUID; import java.util.logging.Level; -import net.milkbowl.vault.economy.Economy; - import org.bukkit.ChatColor; import org.bukkit.Effect; import org.bukkit.Location; @@ -23,6 +21,7 @@ import de.iani.playerUUIDCache.CachedPlayer; import de.iani.playerUUIDCache.PlayerUUIDCache; +import net.milkbowl.vault.economy.Economy; public class TreasureChest extends JavaPlugin implements TreasureChestAPI { private PriceChestData data; @@ -48,7 +47,7 @@ readConfig(); // chestLocation = new Location(getServer().getWorlds().get(0), 308, 127, -879); data = new PriceChestData(this); - getCommand("pricechest").setExecutor(new PriceChestCommandExecutor(this)); + getCommand("treasurechest").setExecutor(new PriceChestCommandExecutor(this)); getServer().getPluginManager().registerEvents(new ChestInventoryListener(this), this); getServer().getPluginManager().registerEvents(new PlayerEventListener(this), this); @@ -130,6 +129,7 @@ } } + @Override public void saveConfig() { FileConfiguration config = getConfig(); if (chestLocation == null || chestLocation.getWorld() == null) { diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index d560ec3..9521d59 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -7,9 +7,9 @@ depend: [PlayerUUIDCache] commands: - prizechest: + treasurechest: description: Prizechest/Treasurechest - aliases: [prize, pc, treasurechest, tc] + aliases: [prize, pc, prizechest, tc] permissions: treasurechest.admin: