mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Closes #1659
This commit is contained in:
parent
f6540bbfcb
commit
9037b74720
@ -1,12 +1,12 @@
|
||||
repositories {
|
||||
maven {url "http://ci.regularbox.com/plugin/repository/everything/"}
|
||||
maven {url "http://ci.mengcraft.com:8080/plugin/repository/everything"}
|
||||
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/"}
|
||||
maven {url "http://nexus.hc.to/content/repositories/pub_releases"}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':Core')
|
||||
compile 'cn.nukkit:nukkit:1.0-SNAPSHOT'
|
||||
compile group: "cn.nukkit", name: "nukkit", version: "1.0-20170704.231613-609", changing: true
|
||||
compile 'com.google.guava:guava:17.0'
|
||||
}
|
||||
|
||||
|
@ -151,7 +151,8 @@ public class PlayerEvents extends PlotListener implements Listener {
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void onEntityCombustByEntity(EntityCombustEvent event) {
|
||||
if (event instanceof EntityCombustByEntityEvent) {
|
||||
EntityDamageByEntityEvent eventChange = new EntityDamageByEntityEvent(((EntityCombustByEntityEvent) event).getCombuster(), event.getEntity(), EntityDamageEvent.CAUSE_FIRE_TICK, event.getDuration());
|
||||
EntityDamageByEntityEvent eventChange =
|
||||
new EntityDamageByEntityEvent(((EntityCombustByEntityEvent) event).getCombuster(), event.getEntity(), EntityDamageEvent.DamageCause.FIRE_TICK, event.getDuration());
|
||||
onEntityDamageByEntityEvent(eventChange);
|
||||
}
|
||||
}
|
||||
@ -780,9 +781,9 @@ public void blockDestroy(BlockBreakEvent event) {
|
||||
return;
|
||||
}
|
||||
switch (event.getAction()) {
|
||||
case PlayerInteractEvent.RIGHT_CLICK_BLOCK:
|
||||
case PlayerInteractEvent.LEFT_CLICK_BLOCK:
|
||||
case PlayerInteractEvent.PHYSICAL: {
|
||||
case RIGHT_CLICK_BLOCK:
|
||||
case LEFT_CLICK_BLOCK:
|
||||
case PHYSICAL: {
|
||||
Plot plot = pp.getCurrentPlot();
|
||||
if (plot == null || !plot.isAdded(pp.getUUID())) {
|
||||
Block block = event.getBlock();
|
||||
@ -807,8 +808,8 @@ public void blockDestroy(BlockBreakEvent event) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
case PlayerInteractEvent.LEFT_CLICK_AIR:
|
||||
case PlayerInteractEvent.RIGHT_CLICK_AIR: {
|
||||
case LEFT_CLICK_AIR:
|
||||
case RIGHT_CLICK_AIR: {
|
||||
Plot plot = pp.getCurrentPlot();
|
||||
if (plot == null || !plot.isAdded(pp.getUUID())) {
|
||||
if (plot == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user