Light cleaning
This commit is contained in:
@@ -91,10 +91,10 @@ public class PlayerVaults extends JavaPlugin {
|
|||||||
private String _versionString;
|
private String _versionString;
|
||||||
private int maxVaultAmountPermTest;
|
private int maxVaultAmountPermTest;
|
||||||
private Metrics metrics;
|
private Metrics metrics;
|
||||||
private Config config = new Config();
|
private final Config config = new Config();
|
||||||
private BukkitAudiences platform;
|
private BukkitAudiences platform;
|
||||||
private Translation translation = new Translation(this);
|
private final Translation translation = new Translation(this);
|
||||||
private List<String> exceptions = new CopyOnWriteArrayList<>();
|
private final List<String> exceptions = new CopyOnWriteArrayList<>();
|
||||||
|
|
||||||
public static PlayerVaults getInstance() {
|
public static PlayerVaults getInstance() {
|
||||||
return instance;
|
return instance;
|
||||||
@@ -452,7 +452,7 @@ public class PlayerVaults extends JavaPlugin {
|
|||||||
* Get the legacy UUID vault data folder.
|
* Get the legacy UUID vault data folder.
|
||||||
* Deprecated in favor of base64 data.
|
* Deprecated in favor of base64 data.
|
||||||
*
|
*
|
||||||
* @return
|
* @return uuid folder
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public File getUuidData() {
|
public File getUuidData() {
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ public class Loader {
|
|||||||
return Loader.loadNode(config, configObject);
|
return Loader.loadNode(config, configObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Set<Class<?>> types = new HashSet<>();
|
private static final Set<Class<?>> types = new HashSet<>();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
Loader.types.add(Boolean.TYPE);
|
Loader.types.add(Boolean.TYPE);
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import java.util.Collections;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
@SuppressWarnings({"FieldCanBeLocal", "InnerClassMayBeStatic", "unused"})
|
@SuppressWarnings({"FieldMayBeFinal", "FieldCanBeLocal", "InnerClassMayBeStatic", "unused"})
|
||||||
public class Config {
|
public class Config {
|
||||||
public class Block {
|
public class Block {
|
||||||
private boolean enabled = true;
|
private boolean enabled = true;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import org.bukkit.inventory.InventoryHolder;
|
|||||||
public class VaultHolder implements InventoryHolder {
|
public class VaultHolder implements InventoryHolder {
|
||||||
|
|
||||||
private Inventory inventory;
|
private Inventory inventory;
|
||||||
private int vaultNumber;
|
private final int vaultNumber;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new vault holder
|
* Creates a new vault holder
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ public class VaultManager {
|
|||||||
/**
|
/**
|
||||||
* Gets the numbers belonging to all their vaults.
|
* Gets the numbers belonging to all their vaults.
|
||||||
*
|
*
|
||||||
* @param holder
|
* @param holder holder
|
||||||
* @return a set of Integers, which are player's vaults' numbers (fuck grammar).
|
* @return a set of Integers, which are player's vaults' numbers (fuck grammar).
|
||||||
*/
|
*/
|
||||||
public Set<Integer> getVaultNumbers(String holder) {
|
public Set<Integer> getVaultNumbers(String holder) {
|
||||||
@@ -326,7 +326,6 @@ public class VaultManager {
|
|||||||
* Attempt to delete a vault file.
|
* Attempt to delete a vault file.
|
||||||
*
|
*
|
||||||
* @param holder UUID of the holder.
|
* @param holder UUID of the holder.
|
||||||
* @return true if successful, otherwise false.
|
|
||||||
*/
|
*/
|
||||||
public void deletePlayerVaultFile(String holder) {
|
public void deletePlayerVaultFile(String holder) {
|
||||||
File file = new File(this.directory, holder + ".yml");
|
File file = new File(this.directory, holder + ".yml");
|
||||||
|
|||||||
Reference in New Issue
Block a user