Merge branch 'v3.0' of git@github-home:webbukkit/dynmap.git into v3.0

This commit is contained in:
Mike Primm 2020-08-16 21:35:30 -05:00
commit f6cd57c77d
12 changed files with 10 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -278,12 +278,17 @@ DynMap.prototype = {
worldsadded[wname] = true;
}
var worldName = wname;
if(wname.startsWith('world_')) {
worldName = wname.substring(6);
}
map.element = $('<li/>')
.addClass('map item')
.append($('<a/>')
.attr({ title: map.options.title, href: '#' })
.addClass('maptype')
.css({ backgroundImage: 'url(' + (map.options.icon || ('images/block_' + mapindex + '.png')) + ')' })
.css({ backgroundImage: 'url(' + (map.options.icon || ('images/block_' + worldName + '_' + mapindex + '.png')) + ')' })
.text(map.options.title)
)
.click(function() {

View File

@ -115,9 +115,9 @@ worlds:
# background: "#300806"
# mapzoomin: 1
# - class: org.dynmap.hdmap.HDMap
# name: nether
# name: surface
# title: "Surface"
# prefix: nt
# prefix: surface
# perspective: iso_SE_30_hires
# shader: stdtexture
# lighting: nethershadows

View File

@ -1288,7 +1288,7 @@ public class DynmapPlugin
public void sendMessage(String msg)
{
ITextComponent ichatcomponent = new StringTextComponent(msg);
server.getPlayerList().func_232641_a_(ichatcomponent, ChatType.CHAT, player.getUniqueID());
player.sendMessage(ichatcomponent, Util.field_240973_b_);
}
@Override
public boolean isInvisible() {

View File

@ -1298,7 +1298,7 @@ public class DynmapPlugin
public void sendMessage(String msg)
{
ITextComponent ichatcomponent = new StringTextComponent(msg);
server.getPlayerList().func_232641_a_(ichatcomponent, ChatType.CHAT, player.getUniqueID());
player.sendMessage(ichatcomponent, Util.field_240973_b_);
}
@Override
public boolean isInvisible() {