Add sign change API to help with marker sign support on MCPC+

This commit is contained in:
Mike Primm 2014-03-11 23:58:01 -05:00
parent 026cc72233
commit 5d83ebf8aa
2 changed files with 8 additions and 1 deletions

View File

@ -343,7 +343,7 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
break;
case SIGN_CHANGE:
pm.registerEvents(new Listener() {
@EventHandler(priority=EventPriority.MONITOR, ignoreCancelled=true)
@EventHandler(priority=EventPriority.HIGHEST, ignoreCancelled=true)
public void onSignChange(SignChangeEvent evt) {
Block b = evt.getBlock();
Location l = b.getLocation();
@ -1651,4 +1651,9 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
// Failed to submit the stats :-(
}
}
@Override
public void processSignChange(int blkid, String world, int x, int y, int z,
String[] lines, String playerid) {
core.processSignChange(blkid, world, x, y, z, lines, playerid);
}
}

View File

@ -86,6 +86,8 @@ components:
type: markers
showlabel: false
enablesigns: false
# Default marker set for sign markers
default-sign-set: markers
# (optional) add spawn point markers to standard marker layer
showspawn: true
spawnicon: world