diff --git a/src/main/java/net/knarcraft/bookswithoutborders/BooksWithoutBorders.java b/src/main/java/net/knarcraft/bookswithoutborders/BooksWithoutBorders.java index ed8c69d..ae6258c 100644 --- a/src/main/java/net/knarcraft/bookswithoutborders/BooksWithoutBorders.java +++ b/src/main/java/net/knarcraft/bookswithoutborders/BooksWithoutBorders.java @@ -21,10 +21,8 @@ import net.knarcraft.bookswithoutborders.command.CommandSetTitle; import net.knarcraft.bookswithoutborders.command.CommandUnSign; import net.knarcraft.bookswithoutborders.command.GiveTabCompleter; import net.knarcraft.bookswithoutborders.listener.BooksWithoutBordersListener; -import net.knarcraft.bookswithoutborders.utility.BookFormatter; import net.knarcraft.bookswithoutborders.utility.BookToFromTextHelper; import net.knarcraft.bookswithoutborders.utility.FileHelper; -import net.knarcraft.bookswithoutborders.utility.InputCleaningHelper; import net.milkbowl.vault.economy.Economy; import org.bukkit.ChatColor; import org.bukkit.Material; @@ -34,8 +32,6 @@ import org.bukkit.command.CommandSender; import org.bukkit.command.ConsoleCommandSender; import org.bukkit.command.PluginCommand; import org.bukkit.command.TabCompleter; -import org.bukkit.configuration.file.FileConfiguration; -import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemFactory; import org.bukkit.inventory.ItemStack; @@ -102,13 +98,13 @@ public class BooksWithoutBorders extends JavaPlugin { } registerCommand("give", new CommandGive(this), new GiveTabCompleter(this)); - registerCommand("decrypt", new CommandDecrypt(this), null); - registerCommand("groupEncrypt", new CommandGroupEncrypt(this), null); + registerCommand("decrypt", new CommandDecrypt(), null); + registerCommand("groupEncrypt", new CommandGroupEncrypt(), null); registerCommand("delete", new CommandDelete(this), null); registerCommand("deletePublic", new CommandDeletePublic(this), null); registerCommand("copy", new CommandCopy(this), null); registerCommand("unSign", new CommandUnSign(), null); - registerCommand("encrypt", new CommandEncrypt(this), null); + registerCommand("encrypt", new CommandEncrypt(), null); registerCommand("setBookPrice", new CommandSetBookPrice(this), null); registerCommand("setLore", new CommandSetLore(), null); registerCommand("savePublic", new CommandSavePublic(this), null); diff --git a/src/main/java/net/knarcraft/bookswithoutborders/command/CommandDecrypt.java b/src/main/java/net/knarcraft/bookswithoutborders/command/CommandDecrypt.java index aaaec59..187669e 100644 --- a/src/main/java/net/knarcraft/bookswithoutborders/command/CommandDecrypt.java +++ b/src/main/java/net/knarcraft/bookswithoutborders/command/CommandDecrypt.java @@ -17,12 +17,6 @@ import java.io.File; */ public class CommandDecrypt implements CommandExecutor { - private final BooksWithoutBorders booksWithoutBorders; - - public CommandDecrypt(BooksWithoutBorders booksWithoutBorders) { - this.booksWithoutBorders = booksWithoutBorders; - } - @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (!(sender instanceof Player player)) { diff --git a/src/main/java/net/knarcraft/bookswithoutborders/command/CommandEncrypt.java b/src/main/java/net/knarcraft/bookswithoutborders/command/CommandEncrypt.java index e90bd48..9f1942d 100644 --- a/src/main/java/net/knarcraft/bookswithoutborders/command/CommandEncrypt.java +++ b/src/main/java/net/knarcraft/bookswithoutborders/command/CommandEncrypt.java @@ -16,12 +16,6 @@ import org.bukkit.inventory.meta.BookMeta; */ public class CommandEncrypt implements CommandExecutor { - private final BooksWithoutBorders booksWithoutBorders; - - public CommandEncrypt(BooksWithoutBorders booksWithoutBorders) { - this.booksWithoutBorders = booksWithoutBorders; - } - @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (performPreChecks(sender, args, 1, "You must specify a key to encrypt a book!") == null) { diff --git a/src/main/java/net/knarcraft/bookswithoutborders/command/CommandGroupEncrypt.java b/src/main/java/net/knarcraft/bookswithoutborders/command/CommandGroupEncrypt.java index 68f2059..ad3852c 100644 --- a/src/main/java/net/knarcraft/bookswithoutborders/command/CommandGroupEncrypt.java +++ b/src/main/java/net/knarcraft/bookswithoutborders/command/CommandGroupEncrypt.java @@ -15,10 +15,6 @@ import java.util.List; */ public class CommandGroupEncrypt extends CommandEncrypt implements CommandExecutor { - public CommandGroupEncrypt(BooksWithoutBorders booksWithoutBorders) { - super(booksWithoutBorders); - } - @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { BookMeta bookMetadata = performPreChecks(sender, args, 2,