From 17e953e9f352786f9ac4cb83eaad24be0657da69 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Mon, 6 Apr 2020 18:11:26 +0200 Subject: [PATCH] removed target files and fixed sonarint warnings --- .gitignore | 3 +- .../louisvallat/xyz/backhome/BackHome.java | 266 ++++++++---------- target/classes/default.properties | 5 - .../louisvallat/xyz/backhome/BackHome.class | Bin 16337 -> 0 bytes .../xyz/backhome/ConfigFileReader.class | Bin 2836 -> 0 bytes target/classes/plugin.yml | 9 - 6 files changed, 122 insertions(+), 161 deletions(-) delete mode 100644 target/classes/default.properties delete mode 100644 target/classes/louisvallat/xyz/backhome/BackHome.class delete mode 100644 target/classes/louisvallat/xyz/backhome/ConfigFileReader.class delete mode 100644 target/classes/plugin.yml diff --git a/.gitignore b/.gitignore index c893c45..e5aa5b3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .idea -BackHome.iml \ No newline at end of file +*.iml +target \ No newline at end of file diff --git a/src/main/java/louisvallat/xyz/backhome/BackHome.java b/src/main/java/louisvallat/xyz/backhome/BackHome.java index ccdc53b..e4079c1 100644 --- a/src/main/java/louisvallat/xyz/backhome/BackHome.java +++ b/src/main/java/louisvallat/xyz/backhome/BackHome.java @@ -20,6 +20,7 @@ import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.UUID; +import java.util.logging.Level; import java.util.stream.Collectors; /** @@ -56,6 +57,7 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { getLogger().warning(ex.getMessage()); getLogger().warning("You cannot use this plugin while this error " + "hasn't been fixed."); + getPluginLoader().disablePlugin(this); } } @@ -68,7 +70,10 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { * Initialize the plugin's directory. */ private void initDirectory() { - new File(PATH).mkdirs(); + if (new File(PATH).mkdirs()) { + getLogger().log(Level.SEVERE, "Cannot create directory '" + PATH + "'."); + getPluginLoader().disablePlugin(this); + } } /** @@ -100,13 +105,11 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { public void onPlayerDeath(PlayerDeathEvent event) { Player player = event.getEntity().getPlayer(); try { - removeBack(player.getUniqueId()); - addBack(player.getUniqueId(), - player.getLocation().getX(), player.getLocation().getY(), player.getLocation().getZ(), - player.getLocation().getYaw(), player.getLocation().getPitch(), - player.getLocation().getWorld().getName()); + removeBack(player); + addBack(player); } catch (SQLException e) { - event.getEntity().getPlayer().sendMessage(ChatColor.RED + "Your back hasn't been set due to an error, " + + assert player != null; + player.sendMessage(ChatColor.RED + "Your back hasn't been set due to an error, " + "but your death coordinates were X:" + player.getLocation().getX() + " Y:" + player.getLocation().getY() + " Z:" + player.getLocation().getZ()); getLogger().warning(e.getMessage()); @@ -134,11 +137,11 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if (sender instanceof Player) { - if (setHomeCommand(sender, cmd, args)) return true; - if (setBackCommand(sender, cmd, args)) return true; + if (backCommand(sender, cmd)) return true; if (homeCommand(sender, cmd, args)) return true; - if (backCommand(sender, cmd, args)) return true; - if (delHomeCommand(sender, cmd, args)) return true; + if (setBackCommand(sender, cmd)) return true; + if (setHomeCommand(sender, cmd, args)) return true; + return delHomeCommand(sender, cmd, args); } else { sender.sendMessage(ChatColor.RED + "This command can't be issued by a non-player."); } @@ -181,25 +184,19 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { * * @param sender the player that sent the command. * @param cmd the command. - * @param args the args following the command. * @return true if the command didn't fail and true if it has worked correctly. */ - private boolean backCommand(CommandSender sender, Command cmd, String[] args) { + private boolean backCommand(CommandSender sender, Command cmd) { if (cmd.getName().equalsIgnoreCase("back")) { try { this.connexion = getConnection(); - PreparedStatement recherche = this.connexion.prepareStatement( - "SELECT x, y, z, yaw, pitch, world FROM " + config.getProperty(BACK_TABLE_KEY) + " WHERE uuid = ?;"); - recherche.setString(1, ((Player) sender).getUniqueId().toString()); - double x = ((Player) sender).getLocation().getX(); - double y = ((Player) sender).getLocation().getY(); - double z = ((Player) sender).getLocation().getZ(); - float yaw = ((Player) sender).getLocation().getYaw(); - float pitch = ((Player) sender).getLocation().getPitch(); - String worldName = ((Player) sender).getLocation().getWorld().getName(); - teleportPlayerFromPreparedStatement(sender, recherche); - removeBack(((Player) sender).getUniqueId()); - addBack(((Player) sender).getUniqueId(), x, y, z, yaw, pitch, worldName); + try (PreparedStatement recherche = this.connexion.prepareStatement( + "SELECT x, y, z, yaw, pitch, world FROM " + config.getProperty(BACK_TABLE_KEY) + " WHERE uuid = ?;")) { + recherche.setString(1, ((Player) sender).getUniqueId().toString()); + teleportPlayerFromPreparedStatement(sender, recherche); + removeBack(((Player) sender)); + addBack(((Player) sender)); + } this.connexion.close(); } catch (SQLException e) { sender.sendMessage(ChatColor.RED + "An error occured while trying to execute this command. " + @@ -225,19 +222,14 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { try { if (getHomeList(((Player) sender).getUniqueId()).contains(name)) { this.connexion = getConnection(); - PreparedStatement recherche = this.connexion.prepareStatement( - "SELECT x, y, z, yaw, pitch, world FROM " + config.getProperty(HOME_TABLE_KEY) + " WHERE uuid = ? AND name = ?;"); - recherche.setString(1, ((Player) sender).getUniqueId().toString()); - recherche.setString(2, name); - removeBack(((Player) sender).getUniqueId()); - addBack(((Player) sender).getUniqueId(), - ((Player) sender).getLocation().getX(), - ((Player) sender).getLocation().getY(), - ((Player) sender).getLocation().getZ(), - ((Player) sender).getLocation().getYaw(), - ((Player) sender).getLocation().getPitch(), - ((Player) sender).getLocation().getWorld().getName()); - teleportPlayerFromPreparedStatement(sender, recherche); + try (PreparedStatement recherche = this.connexion.prepareStatement( + "SELECT x, y, z, yaw, pitch, world FROM " + config.getProperty(HOME_TABLE_KEY) + " WHERE uuid = ? AND name = ?;")) { + recherche.setString(1, ((Player) sender).getUniqueId().toString()); + recherche.setString(2, name); + removeBack(((Player) sender)); + addBack(((Player) sender)); + teleportPlayerFromPreparedStatement(sender, recherche); + } this.connexion.close(); } else { sender.sendMessage(ChatColor.RED + "The home named '" + name + "' doesn't exist."); @@ -293,14 +285,7 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { " '" + name + "'."); return true; } - addHome(((Player) sender).getUniqueId(), - ((Player) sender).getLocation().getX(), - ((Player) sender).getLocation().getY(), - ((Player) sender).getLocation().getZ(), - ((Player) sender).getLocation().getWorld().getName(), - ((Player) sender).getLocation().getYaw(), - ((Player) sender).getLocation().getPitch(), - name); + addHome(((Player) sender), name); sender.sendMessage(ChatColor.GREEN + "Your home '" + name + "' has been set successfully."); } catch (SQLException e) { sender.sendMessage(ChatColor.RED + "An error occured while adding your home. Try again later."); @@ -333,20 +318,13 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { * * @param sender the player. * @param cmd the command the player sent. - * @param args the args after the command * @return true if the command was good and false otherwise */ - private boolean setBackCommand(CommandSender sender, Command cmd, String[] args) { + private boolean setBackCommand(CommandSender sender, Command cmd) { if (cmd.getName().equalsIgnoreCase("setback")) { try { - removeBack(((Player) sender).getUniqueId()); - addBack(((Player) sender).getUniqueId(), - ((Player) sender).getLocation().getX(), - ((Player) sender).getLocation().getY(), - ((Player) sender).getLocation().getZ(), - ((Player) sender).getLocation().getYaw(), - ((Player) sender).getLocation().getPitch(), - ((Player) sender).getLocation().getWorld().getName()); + removeBack(((Player) sender)); + addBack(((Player) sender)); sender.sendMessage(ChatColor.GREEN + "Your back has been set successfully."); } catch (SQLException e) { sender.sendMessage(ChatColor.RED + "An error occured while adding your home. Try again later."); @@ -364,86 +342,79 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { * @param backedPlayer the player that is being backed. * @throws SQLException if there were a SQL problem */ - private void removeBack(UUID backedPlayer) throws SQLException { - this.connexion = getConnection(); - PreparedStatement stmt = this.connexion.prepareStatement("" - + "DELETE FROM " + config.getProperty(BACK_TABLE_KEY) - + " WHERE uuid = ?;" - ); - stmt.setString(1, backedPlayer.toString()); - stmt.execute(); - connexion.close(); + private void removeBack(Player backedPlayer) throws SQLException { + if (backedPlayer != null) { + this.connexion = getConnection(); + try (PreparedStatement stmt = this.connexion.prepareStatement("" + + "DELETE FROM " + config.getProperty(BACK_TABLE_KEY) + + " WHERE uuid = ?;" + )) { + stmt.setString(1, backedPlayer.getUniqueId().toString()); + stmt.execute(); + } + connexion.close(); + } } /** * Add a home to a player. * - * @param homedPlayer the player that needs a new home. - * @param x x coordinate for the player - * @param y y coordinate for the player - * @param z z coordinate for the player - * @param world the world name - * @param yaw yaw for the player - * @param pitch pitch for a player - * @param name name for the new home + * @param name name for the new home * @throws SQLException if there were a SQL exception. */ - private void addHome(UUID homedPlayer, double x, double y, double z, String world, float yaw, float pitch, String name) throws SQLException { - this.connexion = getConnection(); - List stmts = new ArrayList<>(); - stmts.add(this.connexion.prepareStatement( - "INSERT INTO " - + config.getProperty(HOME_TABLE_KEY) + "(uuid, name, date, x, y, z, yaw, pitch, world) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?);")); - stmts.add(this.connexion.prepareStatement( - "INSERT INTO " + config.getProperty(HOME_HISTORY_TABLE_KEY) - + "(uuid, name, date, x, y, z, yaw, pitch, world) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?);")); - for (PreparedStatement stmt : stmts) { - stmt.setString(1, homedPlayer.toString()); - stmt.setString(2, name); - stmt.setString(3, new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date())); - stmt.setDouble(4, x); - stmt.setDouble(5, y); - stmt.setDouble(6, z); - stmt.setFloat(7, yaw); - stmt.setFloat(8, pitch); - stmt.setString(9, world); - stmt.execute(); + private void addHome(Player player, String name) throws SQLException { + if (player != null && player.getLocation().getWorld() != null) { + this.connexion = getConnection(); + List stmts = new ArrayList<>(); + stmts.add(this.connexion.prepareStatement( + "INSERT INTO " + + config.getProperty(HOME_TABLE_KEY) + "(uuid, name, date, x, y, z, yaw, pitch, world) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?);")); + stmts.add(this.connexion.prepareStatement( + "INSERT INTO " + config.getProperty(HOME_HISTORY_TABLE_KEY) + + "(uuid, name, date, x, y, z, yaw, pitch, world) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?);")); + for (PreparedStatement stmt : stmts) { + stmt.setString(1, player.getUniqueId().toString()); + stmt.setString(2, name); + stmt.setString(3, new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date())); + stmt.setDouble(4, player.getLocation().getX()); + stmt.setDouble(5, player.getLocation().getY()); + stmt.setDouble(6, player.getLocation().getZ()); + stmt.setFloat(7, player.getLocation().getYaw()); + stmt.setFloat(8, player.getLocation().getPitch()); + stmt.setString(9, player.getLocation().getWorld().getName()); + stmt.execute(); + } + connexion.close(); } - connexion.close(); } /** * Add a back for a player. * - * @param backedPlayer the player to add a back to. - * @param x its x coordinate - * @param y its y coordinate - * @param z its z coordinate - * @param world the world where the player were - * @param yaw the player's yaw - * @param pitch the player's pitch * @throws SQLException if an SQL error occured. */ - private void addBack(UUID backedPlayer, double x, double y, double z, float yaw, float pitch, String world) throws SQLException { - this.connexion = getConnection(); - List stmts = new ArrayList<>(); - stmts.add(this.connexion.prepareStatement( - "INSERT INTO " + config.getProperty(BACK_TABLE_KEY) + "(uuid, date, x, y, z, yaw, pitch, world) VALUES (?, ?, ?, ?, ?, ?, ?, ?);")); - stmts.add(this.connexion.prepareStatement( - "INSERT INTO " + config.getProperty(BACK_HISTORY_TABLE_KEY) - + "(uuid, date, x, y, z, yaw, pitch, world) VALUES (?, ?, ?, ?, ?, ?, ?, ?);")); - for (PreparedStatement stmt : stmts) { - stmt.setString(1, backedPlayer.toString()); - stmt.setString(2, new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())); - stmt.setDouble(3, x); - stmt.setDouble(4, y); - stmt.setDouble(5, z); - stmt.setFloat(6, yaw); - stmt.setFloat(7, pitch); - stmt.setString(8, world); - stmt.execute(); + private void addBack(Player player) throws SQLException { + if (player != null && player.getLocation().getWorld() != null) { + this.connexion = getConnection(); + List stmts = new ArrayList<>(); + stmts.add(this.connexion.prepareStatement( + "INSERT INTO " + config.getProperty(BACK_TABLE_KEY) + "(uuid, date, x, y, z, yaw, pitch, world) VALUES (?, ?, ?, ?, ?, ?, ?, ?);")); + stmts.add(this.connexion.prepareStatement( + "INSERT INTO " + config.getProperty(BACK_HISTORY_TABLE_KEY) + + "(uuid, date, x, y, z, yaw, pitch, world) VALUES (?, ?, ?, ?, ?, ?, ?, ?);")); + for (PreparedStatement stmt : stmts) { + stmt.setString(1, player.getUniqueId().toString()); + stmt.setString(2, new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())); + stmt.setDouble(3, player.getLocation().getX()); + stmt.setDouble(4, player.getLocation().getY()); + stmt.setDouble(5, player.getLocation().getY()); + stmt.setFloat(6, player.getLocation().getYaw()); + stmt.setFloat(7, player.getLocation().getPitch()); + stmt.setString(8, player.getLocation().getWorld().getName()); + stmt.execute(); + } + connexion.close(); } - connexion.close(); } /** @@ -454,12 +425,13 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { */ private void removeHome(UUID backedPlayer, String homeName) throws SQLException { this.connexion = getConnection(); - PreparedStatement stmt = this.connexion.prepareStatement("" + try (PreparedStatement stmt = this.connexion.prepareStatement("" + "DELETE FROM " + config.getProperty(HOME_TABLE_KEY) + " WHERE uuid = ? AND name = ?;" - ); - stmt.setString(1, backedPlayer.toString()); - stmt.setString(2, homeName); - stmt.execute(); + )) { + stmt.setString(1, backedPlayer.toString()); + stmt.setString(2, homeName); + stmt.execute(); + } connexion.close(); } @@ -473,12 +445,13 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { private List getHomeList(UUID player) throws SQLException { this.connexion = getConnection(); List homeNames = new ArrayList<>(); - PreparedStatement recherche = this.connexion.prepareStatement( - "SELECT name FROM " + config.getProperty(HOME_TABLE_KEY) + " WHERE uuid = ?;"); - recherche.setString(1, player.toString()); - try (ResultSet res = recherche.executeQuery()) { - while (res.next()) { - homeNames.add(res.getString("name")); + try (PreparedStatement recherche = this.connexion.prepareStatement( + "SELECT name FROM " + config.getProperty(HOME_TABLE_KEY) + " WHERE uuid = ?;")) { + recherche.setString(1, player.toString()); + try (ResultSet res = recherche.executeQuery()) { + while (res.next()) { + homeNames.add(res.getString("name")); + } } } this.connexion.close(); @@ -491,8 +464,7 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { * @throws SQLException if there is a SQL problem. */ private void createBackHistoryTable() throws SQLException { - PreparedStatement stmt; - stmt = connexion.prepareStatement("" + try (PreparedStatement stmt = connexion.prepareStatement("" + "CREATE TABLE IF NOT EXISTS " + config.getProperty(BACK_HISTORY_TABLE_KEY) + "(" + "id INTEGER PRIMARY KEY AUTOINCREMENT, " @@ -505,8 +477,9 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { + "pitch FLOAT, " + "world TEXT" + ");" - ); - stmt.execute(); + )) { + stmt.execute(); + } } /** @@ -515,8 +488,7 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { * @throws SQLException if there were a SQL problem. */ private void createBackTable() throws SQLException { - PreparedStatement stmt; - stmt = connexion.prepareStatement("" + try (PreparedStatement stmt = connexion.prepareStatement("" + "CREATE TABLE IF NOT EXISTS " + config.getProperty(BACK_TABLE_KEY) + "(" + "id INTEGER PRIMARY KEY AUTOINCREMENT, " @@ -529,8 +501,9 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { + "pitch FLOAT, " + "world TEXT" + ");" - ); - stmt.execute(); + )) { + stmt.execute(); + } } /** @@ -539,8 +512,7 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { * @throws SQLException if there were a SQL problem. */ private void createHomeHistoryTable() throws SQLException { - PreparedStatement stmt; - stmt = connexion.prepareStatement("" + try (PreparedStatement stmt = connexion.prepareStatement("" + "CREATE TABLE IF NOT EXISTS " + config.getProperty(HOME_HISTORY_TABLE_KEY) + "(" + "id INTEGER UNIQUE PRIMARY KEY AUTOINCREMENT, " @@ -554,8 +526,9 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { + "pitch FLOAT, " + "world TEXT" + ");" - ); - stmt.execute(); + )) { + stmt.execute(); + } } /** @@ -564,7 +537,7 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { * @throws SQLException if there were a SQL problem. */ private void createHomeTable() throws SQLException { - PreparedStatement stmt = connexion.prepareStatement("" + try (PreparedStatement stmt = connexion.prepareStatement("" + "CREATE TABLE IF NOT EXISTS " + config.getProperty(HOME_TABLE_KEY) + "(" + "id INTEGER UNIQUE PRIMARY KEY AUTOINCREMENT, " @@ -578,7 +551,8 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { + "pitch FLOAT, " + "world TEXT" + ");" - ); - stmt.execute(); + )) { + stmt.execute(); + } } } \ No newline at end of file diff --git a/target/classes/default.properties b/target/classes/default.properties deleted file mode 100644 index e467670..0000000 --- a/target/classes/default.properties +++ /dev/null @@ -1,5 +0,0 @@ -db.name=BackHome.data -db.table.home=Home -db.table.back=Back -db.table.home.history=HomeHistory -db.table.back.history=BackHistory \ No newline at end of file diff --git a/target/classes/louisvallat/xyz/backhome/BackHome.class b/target/classes/louisvallat/xyz/backhome/BackHome.class deleted file mode 100644 index 9f0ccbeb302a96ad429323f33ab65d9e31974a47..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16337 zcmc&*3w#viwLfRFo0)7TAp{b#fG{eL5b^*-grHzT5{Tr1NdU3FmShMko87p(;bran zC01Lt)?#1QKJd2GO4VSXMcdojm(}+6w%S_Ts;JHP3SRkdE5HIA~ zVy@%*Vs79?(rU56OG11WFV*>MotK6999}NZD-3Qlc%{zg>U^HTt3ouDSIgym>D44- zHcM%ZTw3JPDwnomUd!urZV!>ga}B;g?&}Tikoi01p)17QydlIFa!)Zeaj#tZr0Yg0 zZ30vq3K!^cQ*hv_XG0=oKm6 zuJdQan0JU)J}YbfoWY-$H_-hTLbR6;7<{M5^)Cj0(cmx1Tn7#QvcY#5{1wsH-3A{r z_^SrrWAME)^L+-78hlumb-%%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DyXHBD2SuIygZ)CP-#JW3M3<6w=F#P1r=${4V61Xwu=tbC1*^VflwW3br+3MUeN-9$qQC$Jza=~5V* zuFFfEhZ8e{6ElMoQ=vm}Vk&e9PE3WJ5UBPwg^uDZI#f+5kTVe-@6AC6exT`~0~8t% zY$B0|oUuwH`x3OL5t8eV%-yvqsra!ccJI+fgHaNa{M01@nMkT z4-v*bLLK}lqLUvfy~$1ti9Bu5CQn-^RlqYeP~{w@)qgMfQFsYJ4`{FCam;ZW*<g>?f zSQrjUT!OQMIufhe<)|&hV1*Af>e6X$Zl_8l%z~0IL#L2CR9Jr?gWlS^;nKV4Z8-kz zMK*tkZguasW61}RXc)!wt#k(xQj)!wgq3rW_yyGe1eNhGX&ygGOL1@HUqSu9rVacX z!2KzJ^%=Sq&$r|LFeB3EXO&50H||7wRZat9oX0Z8d5nIbD6fpZ!&Lw$PG3ljN%Eo~ z15D>#81Dp_mr>|A#8!b5PZ#>4%&}l*uN(&2adD0g6;3v5T(iunp-@f@0g1r878pOf zd#bc8&p_;jpT47|L;*V?KWLej_@VGA4+)XLtHaXoL7gs^q@_h%e%M z#2Yx1y{R-MAC~0vl;i3((75dB?2}59U*n&WG#(S*{?Db+bgI-0nuB|dRzZuk%2SpG ze;{y5(s9Ux=+(ZFOI1vY2KYntGeBGTg#e!^ h?Rk#29`_Kj)~s9P{a+(QU>g7c diff --git a/target/classes/louisvallat/xyz/backhome/ConfigFileReader.class b/target/classes/louisvallat/xyz/backhome/ConfigFileReader.class deleted file mode 100644 index 2e4eb3e36db4ca18c2ad46e7a429481b808163b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2836 zcma)8>sQlu7=C``k`kg|6+uB)9LP;uwyB%qbbv*>6;MDNa~p;>Es-?o+JuR_-|v6N zzRsNuJ$kl}`>?aWX=l$bO(8(_>_e0M-n^IRecns@_rH(-1aJmFsp!FF1+S@y;BpIE zF|J|)lP$P{R1{MxuHu@4w1U?ayb(o4MGK~-@{D|%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zWs|Oi$LY8l;=9$9SS6T;vn?Fi}cSm+&p` YDkWdzdwj#HFYzp^{uXs^<89pj4_t8O{r~^~ diff --git a/target/classes/plugin.yml b/target/classes/plugin.yml deleted file mode 100644 index c6deb49..0000000 --- a/target/classes/plugin.yml +++ /dev/null @@ -1,9 +0,0 @@ -name: BackHome -version: 1.0-SNAPSHOT -main: louisvallat.xyz.backhome.BackHome -api-version: 1.13 -prefix: BackHome -load: STARTUP -authors: [LouisVallat] -description: A plugin to set and go back to homes. -website: louis-vallat.xyz