2.2.0 release
This commit is contained in:
parent
1fe40e2ffa
commit
e5af76c3ca
7
pom.xml
7
pom.xml
|
@ -6,7 +6,7 @@
|
|||
<groupId>de.jeff_media</groupId>
|
||||
<name>BetterTridents</name>
|
||||
<artifactId>BetterTridents</artifactId>
|
||||
<version>2.1.1</version>
|
||||
<version>2.2.0</version>
|
||||
|
||||
<properties>
|
||||
<spigot.prefix>${project.name}</spigot.prefix>
|
||||
|
@ -141,13 +141,14 @@
|
|||
<dependency>
|
||||
<groupId>de.jeff_media</groupId>
|
||||
<artifactId>JeffLib</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<version>4.0.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>de.jeff_media</groupId>
|
||||
<artifactId>SpigotUpdateChecker</artifactId>
|
||||
<version>1.2.4</version>
|
||||
<version>1.3.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.bstats</groupId>
|
||||
|
|
|
@ -2,7 +2,6 @@ package de.jeff_media.bettertridents.commands;
|
|||
|
||||
import de.jeff_media.bettertridents.Main;
|
||||
import de.jeff_media.bettertridents.config.Permissions;
|
||||
import de.jeff_media.jefflib.thirdparty.org.jetbrains.annotations.NotNull;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
|
@ -13,7 +12,7 @@ public class ReloadCommand implements CommandExecutor {
|
|||
private final Main main = Main.getInstance();
|
||||
|
||||
@Override
|
||||
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String alias, @NotNull String[] args) {
|
||||
public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) {
|
||||
|
||||
if(!sender.hasPermission(Permissions.RELOAD)) {
|
||||
sender.sendMessage(command.getPermissionMessage());
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package de.jeff_media.bettertridents.tasks;
|
||||
|
||||
import de.jeff_media.bettertridents.Main;
|
||||
import de.jeff_media.jefflib.ReflUtil;
|
||||
import de.jeff_media.jefflib.ReflUtils;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Trident;
|
||||
|
@ -21,7 +21,7 @@ public class WatchTrident extends BukkitRunnable {
|
|||
int fieldCount = 0;
|
||||
Class<?> entityThrownTridentClass = null;
|
||||
try {
|
||||
entityThrownTridentClass = ReflUtil.getNMSClass("EntityThrownTrident");
|
||||
entityThrownTridentClass = ReflUtils.getNMSClass("EntityThrownTrident");
|
||||
} catch (Throwable ignored) {
|
||||
// 1.17+
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ public class WatchTrident extends BukkitRunnable {
|
|||
// 1.17+
|
||||
entityThrownTridentClass = Class.forName("net.minecraft.world.entity.projectile.EntityThrownTrident");
|
||||
}
|
||||
getHandleMethod = ReflUtil.getOBCClass("entity.CraftTrident").getMethod("getHandle");
|
||||
getHandleMethod = ReflUtils.getOBCClass("entity.CraftTrident").getMethod("getHandle");
|
||||
for (Field field : entityThrownTridentClass.getDeclaredFields()) {
|
||||
if (field.getType() == Boolean.TYPE) {
|
||||
damageDealtField = field;
|
||||
|
|
Loading…
Reference in New Issue