Removes some unused imports and variables
This commit is contained in:
parent
1ddd50e5df
commit
72e080f1c9
@ -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);
|
||||
|
@ -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)) {
|
||||
|
@ -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) {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user