- Fix sign lines on claim not updating
- Fix plot tier removing for merged plots
- Fix stair rotation for id=24
- Fix interaction to have a lower priority than chestshop (why doesn't
chestshop use monitor priority?)
This commit is contained in:
Jesse Boyd
2015-10-18 22:20:12 +11:00
parent c595b69c3a
commit 26c0e3fa85
8 changed files with 54 additions and 29 deletions

View File

@ -625,7 +625,7 @@ public class PlayerEvents extends com.plotsquared.listener.PlotListener implemen
format = format.replaceAll("%plot_id%", id.x + ";" + id.y).replaceAll("%sender%", "%s").replaceAll("%msg%", "%s");
format = ChatColor.translateAlternateColorCodes('&', format);
event.setFormat(format);
}
}
@EventHandler(priority = EventPriority.LOWEST)
public void BlockDestroy(final BlockBreakEvent event) {
@ -1040,7 +1040,7 @@ public class PlayerEvents extends com.plotsquared.listener.PlotListener implemen
e.getBlocks().remove(i);
}
}
}
}
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
public void onInteract(final PlayerInteractEvent event) {

View File

@ -31,6 +31,7 @@ import com.intellectualcrafters.plot.util.BlockManager;
import com.intellectualcrafters.plot.util.MathMan;
import com.intellectualcrafters.plot.util.StringComparison;
import com.intellectualcrafters.plot.util.StringMan;
import com.intellectualcrafters.plot.util.TaskManager;
import com.intellectualcrafters.plot.util.UUIDHandler;
import com.plotsquared.bukkit.object.BukkitPlayer;
@ -215,10 +216,15 @@ public class BukkitUtil extends BlockManager {
block.setTypeIdAndData(Material.WALL_SIGN.getId(), (byte) 2, false);
final BlockState blockstate = block.getState();
if ((blockstate instanceof Sign)) {
for (int i = 0; i < lines.length; i++) {
((Sign) blockstate).setLine(i, lines[i]);
}
((Sign) blockstate).update(true);
TaskManager.runTaskLater(new Runnable() {
@Override
public void run() {
for (int i = 0; i < lines.length; i++) {
((Sign) blockstate).setLine(i, lines[i]);
}
((Sign) blockstate).update(true);
}
}, 1);
}
}

View File

@ -194,7 +194,6 @@ public class SetBlockFast_1_8 extends BukkitSetBlockManager {
case 15:
case 20:
case 21:
case 22:
case 22:
case 25:
case 30: