[MECH/TP] Useful Compass v3.1.0 - Makes the compass more useful! [RB: 1337 + DevBuild 1529 (1.0.0)]

Discussion in 'Inactive/Unsupported Plugins' started by Slamakans, Nov 26, 2011.

  1. Offline


    == Useful Compass ==

    Useful Compass is a plug-in that is only focused on enhancing the capabilities of the compass for regular players.

    Download - For JDK7
    Code is free for everyone to use, just give credits if you publish the plug-ins 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 anyway, (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 in that cave.

    /uctp [playername]: Teleports to your compass target or if name is passed to that persons compass target.

    /ucset [playername]: Sets compass target to same as other player.

    /ucfollow [playername]: Sets the compass target to track the position of a player. "/uclast" is not affected by the continues change of target. Only when you switch target it will take the last position. (For example: Right-click a block)

    /north: Sets compass target to north.

    /uclast: Sets the compass target to previous target.

    === 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 ===

    • Coming up with more To-dos.
    • Finding bugs if any!

    Version 3.1.0:
    • Added "/ucfollow [playername]" commands.
    • 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 to 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!
    Show Spoiler
    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.
    • Awesome*4
    Version 1.2:
    • Fixing bugs for passing names. New bug found.
    Version 1.1:
    • Passing names added!
    Known bugs:
    Show Spoiler

    • None.

  2. Offline


    Sweet! This is a great plugin.
  3. Offline



    Great idea!

    Anyway to force the compass to point North at all times?
  4. Offline


    I believe that is quite easy to do, but I have no idea of how I should go about with the teleport command there. I'll think about it and add it to the To-dos. :) Thanks btw :D
  5. Offline


    No one needs Teleports!
    Slamakans likes this.
  6. Offline


  7. Offline


    Title fixed and also updated the plugin!
    BioRage likes this.
  8. Offline


    Good work !

    You got my download.

    1 More request, it may seem tedious, but could you add permissions for each thing,

    "utcp.north" etc? Please and Thanks.
  9. Offline


    Sure thing.

    I can also add different permissions for "/uctp" and "/uctp [playername]"
  10. Offline


    Great! Just because I want some user's able to point north *everyone*, and last location, etc!

    Hmm; http://pastebin.com/sFGk5DKg

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 21, 2016
  11. Offline


  12. Offline


    Upgrade your java to JDK7.

    My friend had that error too.

    Also: I have updated the plugin too a 3.0 version, contains a new feature and also permissions for all commands. Should be up within 20 minutes.

    Edit: Update delayed :S
  13. Offline


    Can you recompile for 6?
  14. Offline


    I can try.

    Edit: I have abandoned this subject now (Re-compiling to work for JDK6 users.)
    If you have troubles with the below error message, update to JDK7, It is easy to do and it is better than JDK6.
    Most plugins will work with JDK7, even if they are made with JDK6.

    1. 2011-11-28 00:15:18 [SEVERE] Could not load 'plugins/UsefulCompass.jar' in folder 'plugins':
    2. java.lang.UnsupportedClassVersionError: me/slamakans/usefulcompass/UCMain : Unsupported major.minor version 51.0
    3. at java.lang.ClassLoader.defineClass1(Native Method)
    4. at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
    5. at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    6. at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
    7. at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
    8. at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
    9. at java.security.AccessController.doPrivileged(Native Method)
    10. at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    11. at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    12. at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    13. at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    14. at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    15. at java.lang.Class.forName0(Native Method)
    16. at java.lang.Class.forName(Class.java:264)
    17. at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:170)
    18. at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215)
    19. at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
    20. at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:136)
    21. at org.bukkit.craftbukkit.CraftServer.(CraftServer.java:112)
    22. at net.minecraft.server.ServerConfigurationManager.(ServerConfigurationManager.java:52)
    23. at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
    24. at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    25. at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    26. 2011-11-28 00:15:19 [INFO] [Register] Preferred method [null] not found, using first found.

    Plug-in updated! New command added, more efficient message sending!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 21, 2016
  15. Offline


    1.0.0 isn't a recommended build, you need to use those instead, and the current one is 1337.
  16. Offline


  17. Offline


    Wewt. This thing awesome. Nice job.
    Slamakans likes this.
  18. Offline


    Thank you! :)

    Also, If anyone wants a feature added, tell me and I will check it out! ^^

Share This Page