Useful Compass
Useful Compass
Useful Compass is a light weight plug-in that is only focused on enhancing the capabilities of the compass for regular players.
Code is free for everyone to use, just give credits if you publish the plug-in that you used it for.
Usage
Left-click: Sets the compass target to the worlds spawn location, or if you've had your spawn changed in any way, (e.g by sleeping in a bed. ) it will set it to that location.
Right-click: Sets the compass target to the block you are targeting. Good for remembering safe spots in caves you are exploring, or the exit for that cave.
/uctp [playername]: Teleports to your compass target or if name is passed to that person's compass target.
/ucset [playername]: Sets compass target to same as other player's.
/ucfollow [playername]: Sets the compass target to track the position of a player. "/uclast" is not affected by the frequent change of target. Only when you switch target it will take the last position. (For example: Right-click a block)
/uclast: Sets the compass target to previous target.
/north: Sets compass target to north.
Permission nodes
OPs can do everything.
- uctp.tp - Allows the use of "/uctp".
- uctp.tp.other - Allows the use of "/uctp [playername]".
- uctp.set - Allows the use of "/ucset [playername]".
- uctp.follow - Allows the use of "/ucfollow [playername]".
- uctp.last - Allows the use of "/uclast".
- uctp.north - Allows the use of "/north".
To-do
- Fix "/north" actually pointing west.- Fix a "/uc" command to enable/disable the change of target.- Fix bed issues.
Changelog
- Version 3.2.2:
- Forgot the plugin.yml.
- Version 3.2.1:
- Bug fixes. ( Updating the coding for 1.2.5 )
- Version 3.2.0:
- Added "/uc" to enable/disable the change of target. Does NOT affect the frequent change when "/follow [playername]" is active.
- Fixed "/north" actually pointing west.
- Version 3.1.0:
- Added "/ucfollow [playername]" command.
- Minor efficiency increase in messaging methods.
- Version 3.0.1:
- Fixed "/uctp" and "/uctp [playername]" being usable despite not being op or having the permissions.
- Version 3.0:
- Command changes:
- All commands except "/north" are now prefixed with "uc". Example: "/set" -> "/ucset".
- New command added, "/uclast", allows the player to set his compass target to his previous target. If you use it again after, you will switch to the previous target again. ( You can therefore have 2 different TP spots, and save them. )
- Different permission nodes for "/uctp" and "/uctp [playername]" - "uctp.tp" and "uctp.tp.other" respectively.
- Multiple bugs fixed, most which occurred during updating.
- Previous awesome*100!
- Command changes:
- Version 2.3:
- Fixed "Internal errors" bug.
- Version 2.2:
- Fixed my stupidness.
- Version 2.1:
- Minor typo fixed.
- Version 2.0:
- Major bug fixes!
- All commands now work properly.
- Right- and Left-click now also work as they should.
- Added "/north" and "/set [playername]".
- Added messages for when you use a command or change your compass target.
- I was unsuccessful in trying to remove the error messages on invalid names.
- Major bug fixes!
- Version 1.2:
- Fixing bugs for passing names. New bug found.
- Version 1.1:
- Passing names added!
- Version 1.0:
- First release! :)
Known Bugs
- None.
@Dexter15
Hopefully your issues will be resolved when the new patch gets approved.
@Dexter15 Wow! I actually thought this plug-in was abandoned since I stopped working on it since the last release.
I am really happy for giving such a thorough report on my plug-in and also see that you make good examples of real in-game situations :)
I will try to fix the issues you presented as soon as I get my proficiency in Java back as I have not really done anything related with it since this plug-in.
The explanation for "/north" pointing towards the sun is because I read somewhere that the MC sun sets in north; but when I think about it, it does seems weird. This will be fixed as well.
I think the bed trouble comes from you not having changed your spawn point since you got the plug-in; but I will look into that as well.
Adding a "/uc" to enable/disable the change of target is also on my list to-do.
Summary
I finally tested this. The plugin works "fine" for me with Java 7. Crazdale, that is the problem you are (were?) having.
I like the plugin, but I have a few problems with it (with the 1.0.1 R-1 build of Bukkit).
I have not tested the other features yet. I will probably keep it though because of the follow person feature (and if I accidentally right or left click, I can restore the compass with a command, even if doing that often is annoying).
-Dex
@Crazdale
I haven't tested this yet myself (I plan to in a week or so, when I find time), but I believe that is just because the plug-in was compiled with Java 7 and you are running Bukkit with an older version.
-Dex
Would not run on CB #1597
2012-01-04 18:54:10 [SEVERE] Could not load 'plugins\UsefulCompass.jar' in folder 'plugins':
java.lang.UnsupportedClassVersionError: me/slamakans/usefulcompass/UCMain : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:170)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:151)
at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:127)
at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
Useful compass indeed. Congrats on the awesome idea! My server loves this thing.
Me = Likes this.