mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-09-28 21:57:25 +02:00
Add sign change API to help with marker sign support on MCPC+
This commit is contained in:
parent
026cc72233
commit
5d83ebf8aa
@ -343,7 +343,7 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
|
|||||||
break;
|
break;
|
||||||
case SIGN_CHANGE:
|
case SIGN_CHANGE:
|
||||||
pm.registerEvents(new Listener() {
|
pm.registerEvents(new Listener() {
|
||||||
@EventHandler(priority=EventPriority.MONITOR, ignoreCancelled=true)
|
@EventHandler(priority=EventPriority.HIGHEST, ignoreCancelled=true)
|
||||||
public void onSignChange(SignChangeEvent evt) {
|
public void onSignChange(SignChangeEvent evt) {
|
||||||
Block b = evt.getBlock();
|
Block b = evt.getBlock();
|
||||||
Location l = b.getLocation();
|
Location l = b.getLocation();
|
||||||
@ -1651,4 +1651,9 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
|
|||||||
// Failed to submit the stats :-(
|
// 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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -86,6 +86,8 @@ components:
|
|||||||
type: markers
|
type: markers
|
||||||
showlabel: false
|
showlabel: false
|
||||||
enablesigns: false
|
enablesigns: false
|
||||||
|
# Default marker set for sign markers
|
||||||
|
default-sign-set: markers
|
||||||
# (optional) add spawn point markers to standard marker layer
|
# (optional) add spawn point markers to standard marker layer
|
||||||
showspawn: true
|
showspawn: true
|
||||||
spawnicon: world
|
spawnicon: world
|
||||||
|
Loading…
Reference in New Issue
Block a user