From 74485c7d71f28c4f3e4f8cf49671c12d5f5d99a8 Mon Sep 17 00:00:00 2001
From: Foulest <43710301+Foulest@users.noreply.github.com>
Date: Tue, 27 Aug 2024 17:01:41 -0700
Subject: [PATCH] 2.4.5
- Minor code changes and improvements
---
build.gradle | 2 +-
src/main/java/net/milkbowl/vault/Vault.java | 2 --
src/main/java/net/milkbowl/vault/cmds/VaultCmd.java | 7 +++++--
.../java/net/milkbowl/vault/economy/AbstractEconomy.java | 2 --
.../java/net/milkbowl/vault/permission/Permission.java | 2 --
.../net/milkbowl/vault/util/command/BukkitCommand.java | 4 ++--
.../net/milkbowl/vault/util/command/BukkitCompleter.java | 2 --
.../java/net/milkbowl/vault/util/command/CommandArgs.java | 1 +
8 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/build.gradle b/build.gradle
index edacecca..244b12a0 100644
--- a/build.gradle
+++ b/build.gradle
@@ -5,7 +5,7 @@ plugins {
}
group = 'net.milkbowl'
-version = '2.4.4'
+version = '2.4.5'
description = project.name
compileJava.options.encoding = 'UTF-8'
diff --git a/src/main/java/net/milkbowl/vault/Vault.java b/src/main/java/net/milkbowl/vault/Vault.java
index c49ea16b..f0e8f81e 100644
--- a/src/main/java/net/milkbowl/vault/Vault.java
+++ b/src/main/java/net/milkbowl/vault/Vault.java
@@ -18,7 +18,6 @@
package net.milkbowl.vault;
import lombok.Getter;
-import lombok.NoArgsConstructor;
import net.milkbowl.vault.cmds.VaultCmd;
import net.milkbowl.vault.permission.Permission;
import net.milkbowl.vault.permission.SuperPerms;
@@ -39,7 +38,6 @@
*
* @author Foulest
*/
-@NoArgsConstructor
@SuppressWarnings("unused")
public class Vault extends JavaPlugin {
diff --git a/src/main/java/net/milkbowl/vault/cmds/VaultCmd.java b/src/main/java/net/milkbowl/vault/cmds/VaultCmd.java
index 9a5ab32a..80e390bd 100644
--- a/src/main/java/net/milkbowl/vault/cmds/VaultCmd.java
+++ b/src/main/java/net/milkbowl/vault/cmds/VaultCmd.java
@@ -17,7 +17,6 @@
*/
package net.milkbowl.vault.cmds;
-import lombok.NoArgsConstructor;
import net.milkbowl.vault.Vault;
import net.milkbowl.vault.chat.Chat;
import net.milkbowl.vault.economy.Economy;
@@ -40,9 +39,13 @@
*
* @author Foulest
*/
-@NoArgsConstructor
public class VaultCmd {
+ /**
+ * Handles the command logic.
+ *
+ * @param args The command arguments.
+ */
@SuppressWarnings("MethodMayBeStatic")
@Command(name = "vault", description = "Main command for Vault.",
permission = "vault.main", usage = "/vault")
diff --git a/src/main/java/net/milkbowl/vault/economy/AbstractEconomy.java b/src/main/java/net/milkbowl/vault/economy/AbstractEconomy.java
index 5f2fe4ff..c6255f30 100644
--- a/src/main/java/net/milkbowl/vault/economy/AbstractEconomy.java
+++ b/src/main/java/net/milkbowl/vault/economy/AbstractEconomy.java
@@ -17,7 +17,6 @@
*/
package net.milkbowl.vault.economy;
-import lombok.NoArgsConstructor;
import org.bukkit.OfflinePlayer;
import org.jetbrains.annotations.NotNull;
@@ -27,7 +26,6 @@
*
* @author Foulest
*/
-@NoArgsConstructor
@SuppressWarnings({"deprecation", "unused"})
public abstract class AbstractEconomy implements Economy {
diff --git a/src/main/java/net/milkbowl/vault/permission/Permission.java b/src/main/java/net/milkbowl/vault/permission/Permission.java
index c90507ad..68561e06 100644
--- a/src/main/java/net/milkbowl/vault/permission/Permission.java
+++ b/src/main/java/net/milkbowl/vault/permission/Permission.java
@@ -17,7 +17,6 @@
*/
package net.milkbowl.vault.permission;
-import lombok.NoArgsConstructor;
import net.milkbowl.vault.util.ConstantUtil;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
@@ -35,7 +34,6 @@
*
* @author Foulest
*/
-@NoArgsConstructor
@SuppressWarnings({"unused", "WeakerAccess"})
public abstract class Permission {
diff --git a/src/main/java/net/milkbowl/vault/util/command/BukkitCommand.java b/src/main/java/net/milkbowl/vault/util/command/BukkitCommand.java
index a7639b52..f0f06e8a 100644
--- a/src/main/java/net/milkbowl/vault/util/command/BukkitCommand.java
+++ b/src/main/java/net/milkbowl/vault/util/command/BukkitCommand.java
@@ -32,11 +32,11 @@
* @author minnymin3
* @see CommandFramework GitHub
*/
-public class BukkitCommand extends org.bukkit.command.Command {
+class BukkitCommand extends org.bukkit.command.Command {
private final Plugin owningPlugin;
private final CommandExecutor executor;
- protected BukkitCompleter completer;
+ BukkitCompleter completer;
/**
* Constructs a BukkitCommand instance.
diff --git a/src/main/java/net/milkbowl/vault/util/command/BukkitCompleter.java b/src/main/java/net/milkbowl/vault/util/command/BukkitCompleter.java
index ebac0099..824fab18 100644
--- a/src/main/java/net/milkbowl/vault/util/command/BukkitCompleter.java
+++ b/src/main/java/net/milkbowl/vault/util/command/BukkitCompleter.java
@@ -18,7 +18,6 @@
package net.milkbowl.vault.util.command;
import lombok.Getter;
-import lombok.NoArgsConstructor;
import lombok.Setter;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
@@ -38,7 +37,6 @@
*/
@Getter
@Setter
-@NoArgsConstructor
public class BukkitCompleter implements TabCompleter {
private final Map> completers = new HashMap<>();
diff --git a/src/main/java/net/milkbowl/vault/util/command/CommandArgs.java b/src/main/java/net/milkbowl/vault/util/command/CommandArgs.java
index dccc5b03..305fa574 100644
--- a/src/main/java/net/milkbowl/vault/util/command/CommandArgs.java
+++ b/src/main/java/net/milkbowl/vault/util/command/CommandArgs.java
@@ -34,6 +34,7 @@
*/
@Getter
@Setter
+@SuppressWarnings({"unused", "WeakerAccess"})
public class CommandArgs {
private final CommandSender sender;