PoleCompass
PoleCompass is a simple plugin, where you can modify your compass to the max! PoleCompass is my first plugin, and it is also my first Java project(The succes in Java lies in that I do C# for a while).
Features & Commands
Polecompass can do at the moment these things:
- /compass <direction> - Sets your compass target to a the North, East, South or West(Those are the valid arguments for direction);
- /compass pos <x> <y> <z> - Sets your compass target to a specific coordinate;
- /compass pos current - Sets your compass target to your current location.
- /compass bed - Sets your compass to your bed
- /compass follow <player> - Sets your compass target to a player's location, and keep folowing him!
- /compass about- shows the info about PoleCompass
- /compass help - views help page
- /setplayercompass <player> <direction> - Points the player's compass to the specified direction. Valid directions: north, east, south, west. (PoleCompass.setplayercompass)
- /setplayercompass <player> pos <current> | <x> <y> <z> - Points the player's compass to the specified position, or the player's current position if you specify current instead.(PoleCompass.setplayercompass.pos)
- /setplayercompass <player> follow <player to follow> - Make someones compass point and follow to a player.(PoleCompass.setplayercompass) Use /compass [reset] to reset your compass.
Tip: You can short arguments! for example, instead /compass north, you can use /compass n!
Permissions
PoleCompass.compass - /compass PoleCompass.compass.pos - /compass pos PoleCompass.compass.follow - /compass follow PoleCompass.compass.help - /compass help PoleCompass.compass.about - /compass about PoleCompass.setplayercompass - /setplayercompass PoleCompass.setplayercompass.follow - /setplayercompass follow PoleCompass.setplayercompass.pos - /setplayercompass pos
Other stuff
The source code is located here! The license is again changed to public domain. I prefer if you give me("joppiesaus") some credit to me if you use my source code, thought it is not mentioned in the license.
Changelog
Compiled in Java 1.8
V 2.0.4 - hotfix
- Fixed /compass bed not showing up in /compass help
V 2.0.3
- Hopefully finally fixed that stupid bug(your compass will reset no matter what now)
- /compass reset no longer sets your compass to your bed if you have one
- Added /compass bed, it points the compass to the bed
- Added /setplayercompass bed
V 2.0.2
- Learned that I should, I definitely should, test more.
- Fixed not being able to reset bug, the other variant
- Fixed "<player> is not a valid command or direction" on /setplayercompass
V 2.0.1
- Fixed some bugs & tweaked some stuff
- Fixed not being able to reset bug
V 2.0 - Made for bukkit/spigot for Minecraft 1.9
- Added /setplayercompass
- Rewrote everything
- Fixed many bugs
V 1.3 - Made for bukkit for Minecraft 1.7
- Added /compass playerpos <name> [x | current] [y] [z], does the same thing as /compass pos, but then for other players.(very usefull for command blocks and stuff)
- Tweaked some other stuff, including derp messages.
- Realized that the Y value is actually useless
V 1.2 - compatiable with the 1.6.4 build
- Added about command, /polecompass - shows the info about PoleCompass
- Added permission for /compass follow (I got some protests from the hermits.)
- Some tweaks & fixes
V 1.1
- Added new arguments: /compass follow <player> - folows a player!(djeez. It took me a while!)
- Added command, /compass help
V 1.0
- Inital release
Ideas
- GUI - being worked on
- location information on right-click with compass - being worked on
Enyoy my plugin! Let me know if you found bugs, have ideas, problems or other stuff! Thanks for 1000 downloads by the way.
<<reply 2775892="">>
Dear Vestle,
I cannot explain to you how it feels having to spend 3 releases on the same bug.
All those releases, except the last one, were done very hastily, because I thought "oh no there's a bug quickly I need to fix this" and then do it so quickly that you don't actually fix it because you overlook some things.
I feel really sorry. I've learned a lot from this experience.
The fix's up now. The file should be approved soon. I've also added
/compass bed
, so when your use/compass reset
it points to the world spawn location and not your bed's when you have one.Have fun
-joppiesausisok
@Vestle
I'm so sorry. I'm going to fix this ASAP
@joppiesausisok
Any idea how to override the compass always pointing to world spawn location?
Also Players tested and still doesnt reset
@Vestle
I'm so sorry! I should test more! But, it's fixed now, as far as I know. The file should be approved soon! :D
@Vestle
I'm looking into this!
Still not reseting - players complain stuck on direction they originally set and cannot change it now.
great idea. thanks for sharing the plugin. Have tol try this immediately to set a users compass to coordinates to solve quests...
@sflloyd11 @Digitalbamph
Thanks a lot! :D I've fixed that bug, it will be in the next build! :D
1 minor issue here;
/compass reset gives "An internal error occurred while attempting to perform this command".
Other than that, this is completely awesome. I love it. Saves to much time helping those who seem to always get themselves lost.
I love this Mod, and use in on Rangerpost. It is a great exploration tool and is a must have for new and old MC players alike. Simple to use, and great to finally make the compass a useful tool!
Well worth a download and the expenditure of the iron and redstone. never have to tell someone where you are ever again, they can just track you and find you them selves, lol
@tremby90
Hi - I'm a year late, but - I made that. :D
can u make it so /compass playerpos can be issued through the console? i need this working for a quest plugin
@joppiesausisok
Great!
@platelminto
Oh god. I must have been forgotten to remove a debug line of code! That's what I get when you leave your code untested...
Anyways: I've fixed it. The file should be approved soon.
So I did /compass follow (username) and only in my chat (not in Console/other peoples chats) my name and the person I wanted to follow's name get repeated infinitely, it works though. So, what's up with that?
Hello
I have a small suggestion, not sure if it's easy to realise but you could answer me i suppose.
I want to use your plugin to make quest. With denizen it's realy easy to use it like this but i want to use also command block to set up compass position. So i wonder if it's possible to add a player name to each command to change position of compass for other player. of cource it's important to have a permission for "admin usage" to be sure that only staff member can use comands with other name.
Ho before i forget i realy love your plugin it's simple and very powerfull.
@LHammonds
I uploaded it, just needs its approval. PoleCompass is now hermit-friendly!
In version 1.0, it seemed like you had "about" info in the command if no arguments were passed to it. I was suggesting the help page showing up if no arguments were given and moving the "about" info to an "about" sub-command.
I noticed the "follow player" comment on the 1.1 change log. Could that be made where it requires a permission? The reason is that it seems a bit unrealistic and somewhat unfair for those that travel great distances to become hermits. :)
Thanks,
LHammonds
@LHammonds
Thank you very much! I will update it soon!
EDIT: I was not quite sure about the about command...
Thanks for creating and sharing this plugin. Excellent job on your 1st java project! It works on CraftBukkit 1.6.2-R1.0 with Java 1.7.0_25 (64-bit) on Windows 7 (64-bit) and Ubuntu Server 12.04.2 LTS (64-bit) and PermissionsEX 1.20.2
I love the simplicity and usefulness of this plugin and already have it installed on my server.
Suggestions
"Help" and "about" commands with associated permissions would be a nice touch:
Help
/compass (this should show the help page)
/compass help (this should also show the help page)
Required permission: - PoleCompass.help
Example Output:
About
/compass about
Required permission: - PoleCompass.about
Example Output
Thanks,
LHammonds