[MECH] CompassPointer v0.65 - an alternative to warping [617]

Discussion in 'WIP and Development Status' started by Superyoshi, Mar 29, 2011.

Thread Status:
Not open for further replies.
  1. Offline


    What is this?

    CompassPointer is a alternative to warping for survival/reality servers. Instead of just putting you to a certain place, this plugin will merely set the compass target to a certain point.
    I made this plugin to get into Bukkit Plugin coding, and after some inital problems, I finally got how it worked.

    /pointlist <page> - Show list of aviable target points.
    /pointto <location> - Point to the location specified. Set <location> to spawn to reset the compass target.
    /pointadd <name> - Add your current location to the target point list.

    Copy the CompassPointer.jar into the plugins folder, then create an empty file called points.txt in the folder /plugins/CompassPointer/. Now jump into the game a define points using the /pointadd <name> command.

    Permissions (only compatible with Permissions right now; if this is not installed, everyone can use the commands)
    compasspointer.point.* - Give this to people who should be able to target any point.
    compasspointer.point.<location> - Users with this permission can only target certain points. Note that the location spawn can always be targeted.
    compasspointer.list - Allows the player to read the point list.
    compasspointer.add - This permission enables the /pointadd command.

    To Do
    - Tidy up and optimize code. It's pretty chaotic and has some unused imports right now
    - Multiworld support (can only target points in certain worlds)

    Download + Changelog
    CompassPointer.jar (v0.65)
    Source at github
    - automatic data folder generation so the points.txt generation works

    - forgot to update version in plugin.yml -.-
    - source moved to github
    - adds [CompassPointer] tag to all console output
    - console output when adding points
    - automatic points.txt generation
    - fixed /pointadd displaying "Point '' (;) added"
    - in-game command to add points
    - pagination for point list
    - changed namespace
    - first version of point list
    - Permissions
    - initial release
  2. Offline


    Made a jump from 0.2 to 0.5. Added an in-game command to add target points, so it's a lot easier to use now.

    EDIT: fixed a stupid mistake with 0.51
  3. Offline


    This looks nice! Going to install this when i get home. Is it possible that your make it so you can get the compass to point to players? (compasspointer.point.atplayer or something) (You could also make for a hunting mod, so you can "tag" a mob or player and follow them around)
  4. Offline


    v0.61 released.

    WorldGuard already has this (/locate PLAYER). For now I won't add it, but as soon I reached v1 I may think about it again... maybe right-click with compass to target the entity on the line of sight?
  5. Offline


    Yeah, that sounds nice... I found no use for WorldGaurd because Essentials and WorldEdit can provide me with everything it has...
  6. Offline


    i get this msg when i start the server and the plugin disable itself

    2011-04-04 17:36:59 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-612-g4c7a9e7-b615jnks (MC: 1.4)
    2011-04-04 17:36:59 [INFO] Preparing level "world"
    2011-04-04 17:36:59 [INFO] Preparing start region
    2011-04-04 17:37:00 [INFO] 144 recipes
    2011-04-04 17:37:01 [INFO] Preparing spawn area: 32%
    2011-04-04 17:37:01 [INFO] Invalid config file found and converted to proper name/format.
    2011-04-04 17:37:01 [INFO] [Permissions] (Phoenix) was Initialized.
    2011-04-04 17:37:01 [WARNING] [CompassPointer] Could not create points.txt - disabling CompassPointer version 0.6
    2011-04-04 17:37:01 [INFO] [CompassPointer] 0.6 is disabled!
    2011-04-04 17:37:01 [INFO] [Permissions] version [2.5.5] (Phoenix)  loaded
    2011-04-04 17:37:01 [INFO] Done (0.192s)! For help, type "help" or "?"
  7. Offline


    Make a subfolder in /plugins called CompassPointer and create an empty file called points.txt.
    I have an idea what causes this, will look into it when I'm home.

    EDIT: Yup, forgot to create the folder. Fixed now.
  8. Offline


    a /pointdel would be nice
  9. Offline


    thx for the earlier reply, but now i have all installed fine, i can do:
    /pointlist <page>
    /pointadd <name>
    but when i do "/pointto base" say "compass is now pointing to base." but there is no changes in the direction the compass is pointing.
    (i have no console errors or anything, the compass just don't change to the new point.)

    EDIT: i have both (1.3 and 1.4) and for now im just testing in 1.4, i tested the same v0.65 in CB544 (the one i use in 1.3) and it works great.
  10. Offline


    If you upgraded to minecraft 1.4, setCompassTarget (which is what makes your compass point as something) is currently broken.
  11. Offline


  12. Offline


    anyone know if this works on 1.5?
  13. Offline


    Tested in minecraft 1.6.6 with b818 and its working, it seems setCompassTarget was fixed.
    it will be nice if you add the /pointdel command.
  14. Offline


    is this plugin abandoned? can anyone continue with it? I really like it so I want it to be updated with more commands...
  15. Offline


    Wait, setCompassTarget() is broken? Or is that just really outdated in the post?
    It works fine with my compass plugin, so I'm going to assume whatever the issue was, it was fixed. Anyways, really neat idea. I've been trying to add a similiar system to my plugin, but I'm hitting a wall when it comes to saving certain locations. I'm sure I'll get there eventually :)
Thread Status:
Not open for further replies.

Share This Page