Add sign change API to help with marker sign support on MCPC+
This commit is contained in:
parent
026cc72233
commit
5d83ebf8aa
2 changed files with 8 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue