Giter Club home page Giter Club logo

dynmap's Introduction

Webserver-Plugin for Bukkit (minecraft server mod) that provides HTTP1.1 Service to other Plugins

This Plugin will provide a Webserver, so other Plugin-Developers can use this one instead of program their own, to avoid multiple Webservers running and eating ressources and tcp ports.

dynmap's People

Contributors

alron avatar baconwaifu avatar belak avatar brainstone avatar chimneyswift avatar degup avatar fedupwith-tech avatar flames avatar frozencow avatar generrosity avatar jlyne avatar jonasbn avatar jurgenkuyper avatar kilandor avatar konradowypl avatar kosma avatar lhns avatar lishid avatar masmc05 avatar michele0303 avatar mikeprimm avatar mikeprimm-mirific avatar mikeprimm-triva avatar pssbletrngle avatar rumickon avatar ry0tak avatar stepech avatar stormboomer avatar zeez avatar zml2008 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dynmap's Issues

NullPointerException “found“

Hello,
sorry for the pooooooor report, but recently I found following stacktrace:

2011-02-13 15:27:27 [SEVERE] Exception while handling request: 
java.lang.NullPointerException
        at java.util.regex.Matcher.getTextLength(Matcher.java:1151)
        at java.util.regex.Matcher.reset(Matcher.java:308)
        at java.util.regex.Matcher.<init>(Matcher.java:228)
        at java.util.regex.Pattern.matcher(Pattern.java:905)
        at org.dynmap.web.HttpServerConnection.readRequestHeader(HttpServerConnection.java:32)
        at org.dynmap.web.HttpServerConnection.run(HttpServerConnection.java:81)
java.lang.NullPointerException
        at java.util.regex.Matcher.getTextLength(Matcher.java:1151)
        at java.util.regex.Matcher.reset(Matcher.java:308)
        at java.util.regex.Matcher.<init>(Matcher.java:228)
        at java.util.regex.Pattern.matcher(Pattern.java:905)
        at org.dynmap.web.HttpServerConnection.readRequestHeader(HttpServerConnection.java:32)
        at org.dynmap.web.HttpServerConnection.run(HttpServerConnection.java:81)

Fabian

Password Protection / User management

Any on my players knowledgeable enough to use a port scanner will be able to find the map and abuse this to gain the upper hand in raiding etc.

Could we have a user management, or built in password protection?

[Request] Never Show Players

Our server is PvP and while we like to provide an overworld map to players to make navigation simple, we don't want the players to ever show on this map. Some way to disable the display of players by default would be great.

[Issue] Stopping players from controlling other player's statuses.

Apparently (my players reported this), a player can control another player's hide/show status. It would be great if you could stop that from happening, or make it OPs only.

Also, I'd love it if hidden players would still show up on the playerlist, but clicking the name won't do anything. Better yet, it would display a message saying something like "This player is hidden." A lot of players on my server hide, and when checking the playerlist, the server looks nearly empty.

Tiles not generating

I get no tiles in my tiles folder :S
Also theres only blackness on the map because of that, when i put out a block its an error picture.

Im using ubuntu so in my server.props its /var/www/dynmap/tiles/

Error

when spawn area prepared:

Craftbukkit version git-Bukkit
-0.0.0-405-gf77e79e-b323 (MC: 1.2_01)

SEVERE: null; expected '', but found BlockMappingStart (Is it up
to date?)
expected '', but found BlockMappingStart
in "", line 4, column 1:
renderinterval: 1
^

    at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce(Parse

rImpl.java:233)
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108)

    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons

tructor.java:124)
at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
at org.bukkit.util.config.Configuration.load(Configuration.java:73)
at org.dynmap.DynmapPlugin.onEnable(DynmapPlugin.java:58)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:135)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
.java:425)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
r.java:175)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:74)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:55)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:171)
at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:158)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:110)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)

Ability to zoom out the world a bit more

It feels all a bit too close-up, especially when you want an overview of the world in general. Is there an option to zoom out some more so that you can see a much larger portion of the world at once?

Bug in map.js regarding auto-pan to chat

in map.js the line:
disableAutoPan: me.options.focuschatballoons || false,
should have disabled autopan (disableAutoPan: true) for focuschatballoons: true which is a bit confusing. However , i was not able to disable it with any setting for focuschatballoons

after i changed the line to:
disableAutoPan: !me.options.focuschatballoons,
it now works for me as intended
focuschatballoons: false -> disableAutoPan: true

[Request] Update for CraftBukkit build 406+

Using DynMap 0.12.1:
The plugin does not crash, but there is a warning at the launch time:

[WARNING] Using the stupidly long constructor org.dynmap.DynmapPlugin(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of dynmap to remove it! (Nothing is broken, we just like to keep code clean.)

I think it may break the plugin in some time...

Plugin Crashes on CraftBukkit 232+

Exception:

eb 8, 2011 10:24:43 PM org.bukkit.craftbukkit.CraftServer loadPlugins
SEVERE: org.bukkit.Server.getWorlds()Ljava/util/List; (Is it up to date?)
java.lang.NoSuchMethodError: org.bukkit.Server.getWorlds()Ljava/util/List;
    at org.dynmap.DynmapPlugin.getWorld(DynmapPlugin.java:45)
    at org.dynmap.DynmapPlugin.onEnable(DynmapPlugin.java:64)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:135)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:380)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:175)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:63)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:44)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:156)
    at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:143)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:186)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)

Ability to hide from map.

Give the users a simple command ex. /map (hide/show)

When user has hide status they are hidden from showing position on the map.
When user has show status they are shown on the map/can be defaulted on?

Allow users who pvp or want to be hidden from the map viewers to be hidden.

[Feature] Higher resolution

Moin, is it possible to generate tiles with a higher resolution? At the moment they are pretty blurry on the closest zoom.

Sincerely
xZise

Spawn as default focus point

I'd like to have Spawn be the default focal point when you first connect to the map. Also if it could be a selection option along with the users names. Maybe even something like a map marker functionality.

Server crashes “suddenly”

Hello, my server crashed two times today:
2011-02-15 15:36:42 [SEVERE] Unexpected exception
net.minecraft.server.MinecraftException: Failed to check session lock, aborting
at net.minecraft.server.World.h(World.java:1808)
at net.minecraft.server.World.i(World.java:187)
at net.minecraft.server.World.a(World.java:177)
at net.minecraft.server.World.f(World.java:1460)
at net.minecraft.server.WorldServer.f(WorldServer.java:46)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:307)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:232)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
2011-02-15 15:36:42 [INFO] map WebServer.run() stops with IOException
2011-02-15 15:36:42 [INFO] map WebServer run() exiting
java.io.FileNotFoundException: /home/xzise/Programme/Minecraft/Server 323/plugins/dynmap/web/tiles/ct_-512_1152.png (Too many open files)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.(RandomAccessFile.java:233)
at javax.imageio.stream.FileImageOutputStream.(FileImageOutputStream.java:69)
at com.sun.imageio.spi.FileImageOutputStreamSpi.createOutputStreamInstance(FileImageOutputStreamSpi.java:55)
at javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:409)
at javax.imageio.ImageIO.write(ImageIO.java:1520)
at org.dynmap.kzedmap.DefaultTileRenderer.saveTile(DefaultTileRenderer.java:165)
at org.dynmap.kzedmap.DefaultTileRenderer.render(DefaultTileRenderer.java:95)
at org.dynmap.kzedmap.KzedMap.render(KzedMap.java:182)
at org.dynmap.MapManager.run(MapManager.java:203)
2011-02-15 15:36:43 [SEVERE] dynmap: Failed to save tile (NullPointerException): /home/xzise/Programme/Minecraft/Server 323/plugins/dynmap/web/tiles/ct_-512_1152.png
java.io.FileNotFoundException: /home/xzise/Programme/Minecraft/Server 323/plugins/dynmap/web/tiles/t_0_-256.png (Too many open files)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.(RandomAccessFile.java:233)
at javax.imageio.stream.FileImageOutputStream.(FileImageOutputStream.java:69)
at com.sun.imageio.spi.FileImageOutputStreamSpi.createOutputStreamInstance(FileImageOutputStreamSpi.java:55)
at javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:409)
at javax.imageio.ImageIO.write(ImageIO.java:1520)
at org.dynmap.kzedmap.DefaultTileRenderer.saveTile(DefaultTileRenderer.java:165)
at org.dynmap.kzedmap.DefaultTileRenderer.render(DefaultTileRenderer.java:95)
at org.dynmap.kzedmap.KzedMap.render(KzedMap.java:182)
at org.dynmap.MapManager.run(MapManager.java:203)
2011-02-15 15:36:45 [SEVERE] dynmap: Failed to save tile (NullPointerException): /home/xzise/Programme/Minecraft/Server 323/plugins/dynmap/web/tiles/t_0_-256.png

Fabian

Location Tagging

I would love to see a way to allow users to place a small tag onto the map. A dot that, when hovered over, will bring up whatever note was set (Ideally, location names and such).
Allowing different colored dots to be used would be fantastic. That way, specific servers could use color codes such as purple for warps, red for roads, blue for buildings/landmarks, etc..
And, of course, an option on the overall map to toggle tags on and off. :)

[Suggestion] Super Secret Base Blocks

Aka if i place this block first, dont update the chunks around me

Some players do not like the fact their secret base is for the world to see and the default google blurring.. well... it means something is hidden there so thats only adds to the curious ones to make the quest there to see what it is they dont want them to see. But if the chunk never updates in the first place...

wrong name in configuration.txt

the default configuration.txt says:
tilepath: web/tiles

but the java code reads "tilespath" not "tilepath", so it should be:
tilespath: web/tiles

[Feature] New map rendering method.

Right now, the only two ways the map renders a tile for the first time is when a block is modified in an unrendered tile, or one does a full render command. A much-needed feature in Dynmap is to have Dynmap render an area for the first time when a player walks into the unrendered tile. This way, people can't run for days on the map, then start building in a completely black area, because they'd leave a fresh path along the map. Also, it would be great if Dynmap searched in the background for unrendered chunks and rendered them, without taking up much resources.

[Severe Bug] When placing new blocks.

Using v.0.13 DynMap & v.1.3_01 Minecraft.
Upon placing a new block, DynMap causes the server to spam errors like:
(eventually crashes the server).

[INFO] Chunk (-11, -3) stored at (-8, -6) 2011-02-24 10:11:22
[SEVERE] java.lang.Throwable 2011-02-24 10:11:22
[SEVERE] at net.minecraft.server.LongHashtable.get(LongHashtable.java:31) 2011-02-24 10:11:22
[SEVERE] at net.minecraft.server.ChunkProviderServer.b(ChunkProviderServer.java:107) 2011-02-24 10:11:22
[SEVERE] at net.minecraft.server.World.c(World.java:202) 2011-02-24 10:11:22
[SEVERE] at net.minecraft.server.World.getTypeId(World.java:145) 2011-02-24 10:11:22
[SEVERE] at org.bukkit.craftbukkit.CraftWorld.getBlockTypeIdAt(CraftWorld.java:60) 2011-02-24 10:11:22
[SEVERE] at org.dynmap.kzedmap.DefaultTileRenderer.scan(DefaultTileRenderer.java:115) 2011-02-24 10:11:22
[SEVERE] at org.dynmap.kzedmap.DefaultTileRenderer.render(DefaultTileRenderer.java:82) 2011-02-24 10:11:22
[SEVERE] at org.dynmap.kzedmap.KzedMap.render(KzedMap.java:189) 2011-02-24 10:11:22
[SEVERE] at org.dynmap.MapManager.render(MapManager.java:193) 2011-02-24 10:11:22
[SEVERE] at org.dynmap.MapManager$1.handle(MapManager.java:36) 2011-02-24 10:11:22
[SEVERE] at org.dynmap.MapManager$1.handle(MapManager.java:1) 2011-02-24 10:11:22
[SEVERE] at org.dynmap.AsynchronousQueue.running(AsynchronousQueue.java:92) 2011-02-24 10:11:22
[SEVERE] at org.dynmap.AsynchronousQueue.access$000(AsynchronousQueue.java:10) 2011-02-24 10:11:22
[SEVERE] at org.dynmap.AsynchronousQueue$1.run(AsynchronousQueue.java:58) 2011-02-24 10:11:22
[SEVERE] at java.lang.Thread.run(Unknown Source) 2011-02-24 10:11:22

[request] timeline backups

It would be really nice if you could set pre-set times(like every hour/day/3 days) to save a big screen picture of the server as a timeline for the server. Maybe have s section on the map to view theese "pictures"

JavaScript errors cause maps not to render in IE

The page loads, and gives the map selection options in the upper right, but doesn't list players. The "powered by Google" logo in the lower right is gone (ostensibly due to the first error below), and the map doesn't render at all (due to the second error).

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; Zune 4.7; .NET CLR 1.1.4322; MS-RTC LM 8)
Timestamp: Sun, 6 Feb 2011 23:01:24 UTC

Message: Invalid property value.
Line: 31
Char: 1921
Code: 0
URI: http://maps.gstatic.com/intl/en_us/mapfiles/api-3/3/8/main.js

Message: 'me.map.getProjection()' is null or not an object
Line: 248
Char: 7
Code: 0
URI: http://panda.boldlygoingnowhere.org:8123/map.js

A lot of log output

 Exception in thread "Thread-471" java.lang.NoSuchMethodError: org.bukkit.Server.getTime()J
    at org.dynmap.web.WebServerRequest.handleUp(WebServerRequest.java:182)
    at org.dynmap.web.WebServerRequest.run(WebServerRequest.java:88)

is repeated over, and over again.

Errors upon launch - org.bukkit.Server.getWorlds()

07/02/2011 11:38:32 PM org.bukkit.craftbukkit.CraftServer loadPlugins
SEVERE: org.bukkit.Server.getWorlds()[Lorg/bukkit/World; (Is it up to date?)
java.lang.NoSuchMethodError: org.bukkit.Server.getWorlds()[Lorg/bukkit/World;
    at org.dynmap.DynmapPlugin.getWorld(DynmapPlugin.java:35)
    at org.dynmap.DynmapPlugin.onEnable(DynmapPlugin.java:54)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:135)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:394)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:175)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:69)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:50)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:167)
    at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:154)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:106)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:202)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)

I'm running the latest version of CraftBukkit from git and version 0.10 (from githubs download area) of DynMap

Permission v2.0 Support

Hi,

can you please add permission v 2.0 support... this addon is so exciting.. we need that :P

Time goes to fast

The time displayed on the map goes to fast, like 2 minutes per second.
Would be nice ti this was fixed

[Request] Favorites on map + update notification

Would it be possible(either through in-game, or at the map) to mark favorites on the map?

Something in-game could be like, /dynmap favorite name "description of location"
or it could be done in the map from browser using traditional google map functions.

Additionally, since there is the webserver component, think a banner msg could be included on the weberface if it detects a newer version of dynmap?
Thanks for a great plugin!

[Problem] Tiles hides to fast

Hello, we have the problem, that the tiles are hides although they are in the shown area. So there is then a big black background :(

Sincerely
xZise

Black screen

When I connect to localhost:8123 it just showes a black screen, and a red bar at the top that disepears after like 3 sec, when I write something, it comes up on the server as it shoud, any help FrozenCow?

[BUG] update is null

Hey FrozenCow,

I think I found a bug in map.js. It appears right after the map loads, and after this error javascript fails.... :(

firebug info:
update is null
me.lasttimestamp = update.timestamp; (map.js line 281)

Hope you can fix this!!

LAN IP causes their icon to be black

Well, that's what it seems like anyways... Roommate comes on with a black player.png icon instead of the default one, someone else joined (not on lan IP) player icon is fine.. Seems to happen everytime he connects.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.