Notice: I have ceased development on my plugins. If you wish to continue development, feel free to fork the repository on GitHub! Waypoints Version: 0.9.2 Features Create POIs (Points of interest) with a single command Add a description to a POI Move a POI Teleport to a POI Show POIs on a Minecraft Overviewer map. (with Info Windows!) MySQL or SQLite storage options Names and descriptions can have spaces. I Want It Get the Dependencies: Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler Permissions 2.7.4 (Pheonix) mysql-connector-j(For MySQL storage) sqlite-jdbc(For SQLite storage, get the latest version, I believe it's 3.7.2) NOTE: You don't need the SQLite library if you are using MySQL and vice versa. Download the ZIP containing all the stuff you need. Unzip to a working directory. (Desktop, home directory, etc.) Move the 'Waypoints.jar' file and the 'Waypoints' folder to your '%BUKKIT_HOME%/plugins' directory. Edit '%BUKKIT_HOME%/plugins/Waypoints/config.yml' (See Configuration below) Reload CraftBukkit I Want Markers on Minecraft Overviewer! Okay, just a few more steps (using FabianN's fork of Overviewer): The ZIP file contains a folder called 'web', move the contents of that folder to the 'web_assets' folder of your Minecraft Overviewer installation. Open the 'index.html' page in web_assets and add this after the other scripts: Code: <!--Waypoints--><script type="text/javascript" src="waypoints/waypoints.js"></script> Optionally, to style Info Windows, add this after the other HTML: <link> tags: HTML: <link rel="stylesheet" href="waypoints/waypoints.css" type="text/css" /> Open the 'overviewer.js' script in web_assets and add this: Code: waypoints.init(); after this (on about line 41) : Code: overviewer.util.createMapControls(); Commands Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler /waypoint create <name> | Create a new waypoint (and select it) /waypoint select <name> | Select an existing waypoint /waypoint deselect | Select no waypoint (deselect) /waypoint delete | Delete the selected waypoint /waypoint describe <description> | Describe the selected waypoint /waypoint move | Move the waypoint to the player's location /waypoint goto | Teleport to the selected waypoint /waypoint list [<page> [<count>]] | List the waypoints on the server /waypoint <name> | Teleport to the specified waypoint Configuration Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler For MySQL storage: (plugins/Waypoints/config.yml) Code: storage: engine: type: 'sql' dbms: 'MYSQL' uri: 'jdbc:mysql://<server>:3306/<database>' username: '<dbuser>' password: '<dbpass>' For SQLite storage: (plugins/Waypoints/config.yml) Code: storage: engine: type: 'sql' dbms: 'SQLITE' uri: 'jdbc:sqlite:path/to/waypoints.db' Permissions Nodes Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler 'waypoints.create' - Create and modify waypoints 'waypoints.list' - List the waypoints on the server 'waypoints.teleport' - Teleport to a waypoint 'waypoints.admin.delete' - Delete other users' waypoints 'waypoints.admin.edit' - Move or change the description of other users' waypoints Changelog - Plugin Version 0.9.2 Fixed compatibility with PermissionsEx compatibility layer. Version 0.9.1 Fixed a glorious SQL connection bug where the plugin becomes useless after an hour or so running. Version 0.9 Initial release Changelog - Overviewer Addon Version 1.1 Added Info Windows Version 1.0 Initial release
Hi Helluvamatt, I'm using your plugin in conjunction with the MapMarkers plugin and the standard overviewer - it works! Added clickable waypoints to see the description and owner. Only a small problem, all markers get deleted every update cycle and are recreated, found out after adding the InfoWindow, because they close on each cycle. Couldn't find out how you check with the w.length, it always returns 0. Thank you for the work!
Do you think it would be easier to just have the waypoints loaded once on page load? I'm not sure how or why, but it works on my test site. I can look at your map if you'd like.
Please report any problems with this plugin on the new RB's in this thread. It should work with 935. Thank you!
I don't get them to show on overviewer. Using Mysql, running the php script on commandline works fine and gives out the waypoints. I added all needed lines to overviewer.js and index.html (css and js) It just wont show
Please use the Google Chrome Developer Console or Firebug to debug your application. In your overviewer.js you have the line 'chattercraft.init();', remove it if you aren't using ChatterCraft (my other plugin). Also, remove 'waypoints.init()' from your <body onload=""> in index.html.
Code: 2011-08-06 19:10:23 [INFO] but2002 tried to use command /waypoint list 2011-08-06 19:10:23 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'waypoint' in plugin Waypoints v0.9.2 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670) at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85) at net.minecraft.server.NetworkListenThread.a(SourceFile:105) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361) at net.minecraft.server.ThreadServerApplication.run(SourceFile:422) Caused by: java.lang.NullPointerException at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:428) at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:138) at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:108) at com.schneenet.minecraft.waypoints.storage.WaypointStorageSQL.findAllPage(WaypointStorageSQL.java:154) at com.schneenet.minecraft.waypoints.WaypointsPlugin.onCommand(WaypointsPlugin.java:254) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35) ... 12 more Help me out?
i just added waypoints.init() to onload because i thought it might work then, i just forgot to remove it. It was the chattercraft.init() which messed stuff up, I just never thought that this would mess it up. I used chattercraft but didn't like it that much forgot to remove that line. Thanks and sorry for your trouble
@ShaDooM Glad to hear you got it working. @helluvamatt Any idea on what's going wrong with mine? It doesn't seem to be able to establish a DB connection. D:
You might double check your MySQL configuration. Also, try to see if there are other errors/exceptions upon server startup. (If you have to, restart the server and check server.log or watch the console.) EDIT: You can post your entire server.log to Pastebin. I won't be able to look at it today, but I will at try to get to it much later tonight.
@but2002 Code: [SIZE=12px][FONT=monospace][COLOR=rgb(24, 24, 24)][LIST=1][*]2011-08-06 19:03:00 [SEVERE] [Waypoints] Exception while setting up SQL Storage: [*]java.lang.NullPointerException [*] at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:428) [*] at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:138) [*] at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:108) [*] at com.schneenet.minecraft.waypoints.storage.WaypointStorageSQL.initSql(WaypointStorageSQL.java:214) [*] at com.schneenet.minecraft.waypoints.WaypointsPlugin.onEnable(WaypointsPlugin.java:85) [*] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126) [*] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878) [*] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272) [*] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162) [*] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146) [*] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284) [*] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271) [*] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148) [*] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335) [*] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422) Is the Database set in the config file created/writeable? Does the user in the config have enough permissions on the database?
Yes, and yes. I found the error. The config packaged within the zip is full of typos EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Not only that, it has "url" instead of "uri" I was still having issues after fixing the tabs because of that.
Hi, I'm using McMyAdmin Minecraft Server + Bukkit. Waypoints config.yml works because it has successfully created the database on my MySQL Server. But in-game "/waypoint" command doesn't work. I don't know how to configure PermissionsBukkit and what is the use of Permissions Nodes. Where to configure it? Thanks for your help EDIT: By the Way, I confirm that i have to replace URL with URI to make config.yml work properly. EDIT 2: I find the solution. I was not using Permissions but PermissionBukkit! It's work fine with Permissions