Apparently needed to reformat.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
<groupId>com.drtshock</groupId>
|
||||
<artifactId>PlayerVaults</artifactId>
|
||||
<version>3.5.4-SNAPSHOT</version>
|
||||
<version>3.5.5-SNAPSHOT</version>
|
||||
<name>PlayerVaults</name>
|
||||
<url>http://dev.bukkit.org/bukkit-plugins/playervaults/</url>
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@ import com.drtshock.playervaults.util.Lang;
|
||||
import com.drtshock.playervaults.vaultmanagement.UUIDVaultManager;
|
||||
import com.drtshock.playervaults.vaultmanagement.VaultOperations;
|
||||
import com.drtshock.playervaults.vaultmanagement.VaultViewInfo;
|
||||
|
||||
import org.bukkit.*;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.block.Sign;
|
||||
|
||||
@@ -24,7 +24,8 @@ import java.util.zip.ZipFile;
|
||||
* <b>AT ALL</b>. <br> If you fail to include this option in your config, your plugin will be <b>REJECTED</b> when you
|
||||
* attempt to submit it to dev.bukkit.org.
|
||||
* <p/>
|
||||
* An example of a good configuration option would be something similar to 'auto-update: true' - if this value is set to
|
||||
* An example of a good configuration option would be something similar to 'auto-update: true' - if this value is set
|
||||
* to
|
||||
* false you may NOT run the auto-updater. <br> If you are unsure about these rules, please read the plugin submission
|
||||
* guidelines: http://goo.gl/8iU5l
|
||||
*
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
package com.drtshock.playervaults.vaultmanagement;
|
||||
|
||||
import org.bukkit.inventory.Inventory;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.bukkit.inventory.Inventory;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CachedVaults extends HashMap<UUID, CachedVaultsMap> {
|
||||
@SuppressWarnings("serial") public class CachedVaults extends HashMap<UUID, CachedVaultsMap> {
|
||||
public void setCachedVault(UUID playerUUID, int id, Inventory inventory) {
|
||||
CachedVaultsMap vaultCacheMap = this.containsKey(playerUUID) ? this.get(playerUUID) : new CachedVaultsMap();
|
||||
vaultCacheMap.setCachedVault(id, inventory);
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
package com.drtshock.playervaults.vaultmanagement;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import org.bukkit.inventory.Inventory;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CachedVaultsMap extends HashMap<Integer, Inventory> {
|
||||
import java.util.HashMap;
|
||||
|
||||
@SuppressWarnings("serial") public class CachedVaultsMap extends HashMap<Integer, Inventory> {
|
||||
public void setCachedVault(int id, Inventory inventory) {
|
||||
this.put(id, inventory);
|
||||
}
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
package com.drtshock.playervaults.vaultmanagement;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.drtshock.playervaults.PlayerVaults;
|
||||
import com.drtshock.playervaults.util.Lang;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.bukkit.command.CommandSender;
|
||||
@@ -15,8 +10,11 @@ import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
|
||||
import com.drtshock.playervaults.PlayerVaults;
|
||||
import com.drtshock.playervaults.util.Lang;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Class to handle vault operations with new UUIDs.
|
||||
|
||||
Reference in New Issue
Block a user