Revert "Apparently needed to reformat."
This reverts commit 101098ae7b.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
<groupId>com.drtshock</groupId>
|
||||
<artifactId>PlayerVaults</artifactId>
|
||||
<version>3.5.5-SNAPSHOT</version>
|
||||
<version>3.5.4-SNAPSHOT</version>
|
||||
<name>PlayerVaults</name>
|
||||
<url>http://dev.bukkit.org/bukkit-plugins/playervaults/</url>
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ 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,8 +24,7 @@ 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,12 +1,13 @@
|
||||
package com.drtshock.playervaults.vaultmanagement;
|
||||
|
||||
import org.bukkit.inventory.Inventory;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
import java.util.UUID;
|
||||
|
||||
@SuppressWarnings("serial") public class CachedVaults extends HashMap<UUID, CachedVaultsMap> {
|
||||
import org.bukkit.inventory.Inventory;
|
||||
|
||||
@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,10 +1,11 @@
|
||||
package com.drtshock.playervaults.vaultmanagement;
|
||||
|
||||
import org.bukkit.inventory.Inventory;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
@SuppressWarnings("serial") public class CachedVaultsMap extends HashMap<Integer, Inventory> {
|
||||
import org.bukkit.inventory.Inventory;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CachedVaultsMap extends HashMap<Integer, Inventory> {
|
||||
public void setCachedVault(int id, Inventory inventory){
|
||||
this.put(id, inventory);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
package com.drtshock.playervaults.vaultmanagement;
|
||||
|
||||
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.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.bukkit.command.CommandSender;
|
||||
@@ -10,11 +15,8 @@ import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import com.drtshock.playervaults.PlayerVaults;
|
||||
import com.drtshock.playervaults.util.Lang;
|
||||
|
||||
/**
|
||||
* Class to handle vault operations with new UUIDs.
|
||||
|
||||
Reference in New Issue
Block a user