diff --git a/.gradle/8.8/executionHistory/executionHistory.bin b/.gradle/8.8/executionHistory/executionHistory.bin index bd8e77d..4cb8840 100644 Binary files a/.gradle/8.8/executionHistory/executionHistory.bin and b/.gradle/8.8/executionHistory/executionHistory.bin differ diff --git a/.gradle/8.8/executionHistory/executionHistory.lock b/.gradle/8.8/executionHistory/executionHistory.lock index bf3724b..d0def69 100644 Binary files a/.gradle/8.8/executionHistory/executionHistory.lock and b/.gradle/8.8/executionHistory/executionHistory.lock differ diff --git a/.gradle/8.8/fileHashes/fileHashes.bin b/.gradle/8.8/fileHashes/fileHashes.bin index 4c9e8aa..c286a5b 100644 Binary files a/.gradle/8.8/fileHashes/fileHashes.bin and b/.gradle/8.8/fileHashes/fileHashes.bin differ diff --git a/.gradle/8.8/fileHashes/fileHashes.lock b/.gradle/8.8/fileHashes/fileHashes.lock index e74ebf5..45d4799 100644 Binary files a/.gradle/8.8/fileHashes/fileHashes.lock and b/.gradle/8.8/fileHashes/fileHashes.lock differ diff --git a/.gradle/8.8/fileHashes/resourceHashesCache.bin b/.gradle/8.8/fileHashes/resourceHashesCache.bin index fecf370..eeaaebb 100644 Binary files a/.gradle/8.8/fileHashes/resourceHashesCache.bin and b/.gradle/8.8/fileHashes/resourceHashesCache.bin differ diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 4c31e7c..178ae79 100644 Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/.gradle/buildOutputCleanup/outputFiles.bin b/.gradle/buildOutputCleanup/outputFiles.bin index e734b5b..699de81 100644 Binary files a/.gradle/buildOutputCleanup/outputFiles.bin and b/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/.gradle/file-system.probe b/.gradle/file-system.probe index afdc8d0..aff2059 100644 Binary files a/.gradle/file-system.probe and b/.gradle/file-system.probe differ diff --git a/build.gradle b/build.gradle index fc392c4..015e473 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { } group = 'org.twipnetwork' -version = '1.5-1.21' +version = '1.6-1.21' repositories { mavenCentral() diff --git a/build/classes/java/main/org/twipnetwork/rocketJumping/RocketJumping.class b/build/classes/java/main/org/twipnetwork/rocketJumping/RocketJumping.class index 4f7bd8c..13fc54c 100644 Binary files a/build/classes/java/main/org/twipnetwork/rocketJumping/RocketJumping.class and b/build/classes/java/main/org/twipnetwork/rocketJumping/RocketJumping.class differ diff --git a/build/resources/main/paper-plugin.yml b/build/resources/main/paper-plugin.yml deleted file mode 100644 index 99d4f0b..0000000 --- a/build/resources/main/paper-plugin.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: RocketJumping -version: '1.4-1.21' -main: org.twipnetwork.rocketJumping.RocketJumping -api-version: '1.21' -commands: - rocketlauncher: - description: Reloads the RocketJumping configuration. - usage: / reload - permission: rocketlauncher.reload - permission-message: You do not have permission to execute this command. \ No newline at end of file diff --git a/build/tmp/compileJava/compileTransaction/stash-dir/RocketJumping.class.uniqueId0 b/build/tmp/compileJava/compileTransaction/stash-dir/RocketJumping.class.uniqueId0 index 68c71f2..180f3aa 100644 Binary files a/build/tmp/compileJava/compileTransaction/stash-dir/RocketJumping.class.uniqueId0 and b/build/tmp/compileJava/compileTransaction/stash-dir/RocketJumping.class.uniqueId0 differ diff --git a/build/tmp/compileJava/previous-compilation-data.bin b/build/tmp/compileJava/previous-compilation-data.bin index e067dd7..12971ce 100644 Binary files a/build/tmp/compileJava/previous-compilation-data.bin and b/build/tmp/compileJava/previous-compilation-data.bin differ diff --git a/src/main/java/org/twipnetwork/rocketJumping/RocketJumping.java b/src/main/java/org/twipnetwork/rocketJumping/RocketJumping.java index 82bb448..a327877 100644 --- a/src/main/java/org/twipnetwork/rocketJumping/RocketJumping.java +++ b/src/main/java/org/twipnetwork/rocketJumping/RocketJumping.java @@ -1,8 +1,7 @@ package org.twipnetwork.rocketJumping; import org.bukkit.Bukkit; -import org.bukkit.command.Command; -import org.bukkit.command.CommandSender; +import org.bukkit.command.*; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; @@ -14,6 +13,8 @@ import org.bukkit.event.entity.ProjectileHitEvent; import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.util.Vector; +import java.util.Objects; + public final class RocketJumping extends JavaPlugin implements Listener { private double boostPower; @@ -35,7 +36,6 @@ public final class RocketJumping extends JavaPlugin implements Listener { boostPower = config.getDouble("boostPower", 4.0); damageShooter = config.getBoolean("damageShooter", false); } - @EventHandler public void onProjectileHit(ProjectileHitEvent event) { Projectile projectile = event.getEntity(); @@ -56,15 +56,16 @@ public final class RocketJumping extends JavaPlugin implements Listener { @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { - if (command.getName().equalsIgnoreCase("rocketlauncher")) { + if (command.getName().equalsIgnoreCase("rocketjumping")) { if (args.length > 0 && args[0].equalsIgnoreCase("reload")) { reloadConfig(); loadConfigValues(); - sender.sendMessage("§aRocketLauncher config reloaded!"); + sender.sendMessage("§aRocketJumping config reloaded!"); return true; } } return false; } + } diff --git a/src/main/resources/paper-plugin.yml b/src/main/resources/plugin.yml similarity index 77% rename from src/main/resources/paper-plugin.yml rename to src/main/resources/plugin.yml index 6784564..3e1cc5c 100644 --- a/src/main/resources/paper-plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,10 +1,10 @@ name: RocketJumping -version: '1.5-1.21' +version: '1.6-1.21' main: org.twipnetwork.rocketJumping.RocketJumping api-version: 1.21 commands: - rocketlauncher: + rocketjumping: description: Reloads the RocketJumping configuration. usage: / reload - permission: rocketlauncher.reload + permission: rocketjumpingo.reload permission-message: You do not have permission to execute this command. \ No newline at end of file