[MISC] SpoutCoords v0.6.1 - Coordinates for Spoutcraft [1185]

Discussion in 'Inactive/Unsupported Plugins' started by _infina_, Aug 21, 2011.

  1. Offline

    _infina_

    SpoutCoords - Coordinates for Spoutcraft:
    Version: 0.6.1

    This plugin will allow those players who are using Spoutcraft, the Spout client, to have updating, on-screen coordinates. Players who have Spoutcraft can press F4 to toggle these coordinates. Requires: Spout & Spoutcraft

    Features:
    • Enables F3 like coordinates for those using Spoutcraft
    • Permissions
    ToDo:
    • Fix coordinates flashing and disappearing
    Screenshot (open)
    [​IMG]


    Download
    Source Code
    Bukkit Dev

    Changelog:
    Version 0.6.1
    • Fixed "You don't have permission to do that" issue.
    Version 0.6.0
    • Updated to CB1185 & Spout 381
    • Fixed Pemissions error
    • Refactored code
    Version 0.5.0

    • Updated to latest Spout RB
    • Compass
    • Easter Egg
    Version 0.1.0
    • Initial Release
    Thanks to the entire SpoutDev team for both Spout and their assistance in helping me get this working.
     
    Lead2Life likes this.
  2. Offline

    RGadelha

    OK, thanks, waiting...
     
  3. Offline

    Dacove

    @_infina_

    Hello, I found somes issues with your plugin.

    Two player cannot active spoutcoords at the same time, if a second/third/... player want to activate spoutcoords he need to press F4 two times, the first time to disable spoutcoords for the last player who used F4 and the second to enable spoutcoords for himself.

    When two or more players enable spoutcoords at the same time they get coordinates of all the players who activated spoutcoords.
    Numbers displayed are those of the lastest player to move.
    This persist even after a player disconnected from the server.

    Appart from that, you plugins is really great, everyone on my server enjoy using it.

    I hope I'm undersantable since English isn't my native language.
     
  4. Offline

    _infina_

    I am having trouble fixing this right now, I am waiting on the SpoutcraftAPI to be ready to fix this properly.
     
  5. Offline

    Sh4d0w

    i got a request:
    Can you stop the enable/disable coordinates log directly into the console and logs into a file? SpoutCoordinates\log.txt
     
  6. Offline

    _infina_

    That may not be a feature when I re-introduce it as SpoutcraftCoords.
     
  7. Offline

    forceserver

    i don't want to use default...
     
  8. Offline

    dockter

    I also found that with this module missing the permissions node, users who use spout that are not admins get "You don't have permissions for that". for every step they take.

    Update: I added SpoutCoords.* to the group and the message went away.
     
  9. Offline

    _infina_

    Found the error...need to swap around a couple of if statements. That means I have to get to the computer that has the release code on it to fix it. :oops:
     
  10. Offline

    darkcloud784

    does this work with the newest versions of spout/bukkit?
     
  11. Offline

    _infina_

    It has for me.
     
  12. Offline

    Kain888

    So it's compatible with newest RB and we can safely use it?
     
  13. Offline

    _infina_

    I have not noticed anything broken, so it is compatible. I do have a small fix to make to some of the permissions stuff, and that will be out later today.

    Okay, 0.6.0 released.

    Fixed permissions error noted by dockter.
    Refactored namespace.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
    Kain888 likes this.
  14. Offline

    Kain888

    The permission bug noticed by dockter still there for me. :<
     
  15. Offline

    misutaanime

    hmm I dont know what error their was before but with this new version every key I hit I get you dont have permission to do that.. even while in op...
     
    sventi83 likes this.
  16. @_infina_

    Same for me :/ Still there with or without the node 'SpoutCoords.*'

    Cordialy
     
  17. Offline

    webflashing

    Same here >.<
     
  18. Offline

    _infina_

    0.6.1 will be out trying to fix the issue tomorrow @ 0900 Eastern.

    The offending bit of code:
    Code:
    if(event.getKey() == Keyboard.KEY_F4){
                if(event.getPlayer().hasPermission("SpoutCoords.Coords")){
                    SpoutPlayer player = event.getPlayer();
                    plugin.setCoords(player, !plugin.hasCoords(player));
                    if(plugin.hasCoords(player)){
                        System.out.println(player.getDisplayName() + " has enabled coordinates.");
                    }
                    else{
                        System.out.println(player.getDisplayName() + " has diabled coordinates");
                    }
                }
            }
     
  19. Offline

    dockter

    Its actually worse, for groups that have spoutcoords.* enabled, it even errors then.
     
  20. Offline

    webflashing

    I really don't program in Java, I just have a little knowlendge... but the error message we all are getting, occurs when hitting ANY key, not just F4. And the error message says "You don't have permission to do that."

    Sorry if I'm mistaken, just trying to help.
     
  21. Offline

    _infina_

    Version 0.6.1 fixed it. For some reason I cannot fathom, I put my own error message in the code. Gone now.
     
    Kain888 likes this.
  22. Offline

    prom3th3an

    Pro tip: How about you update the OP and BukkitDev page to include what the permission node is...I shouldnt have to look through a whole thread hunting for it in a reply somewhere.
     
  23. Offline

    novek

    True, same here. Two times hunted for it.
     
  24. Offline

    prom3th3an

    Also, there appears to be glitching when multiple people are using it, between it updating my co-ordinates it seems to display other peoples.
     
  25. Offline

    Kain888

    Confirmed. We had to disable it on server to prevent exploits. :(
     
  26. Offline

    dockter

    Any update coming to this soon? Coordinates some times jump all over the place by 3000+ or more. Randomly disappear from the screen, takes multiple F4 attempt before they reappear.
     
  27. Offline

    _infina_

    I am waiting on SpoutcraftAPI to be ready. I have most of the code for it ready.
     
  28. Offline

    Sh4d0w

    The SpoutCoords shows the wrong coordinates. So the y-coord. is +1 as via F3 (example: F3 69, SpCo 70)
    Can you fix it?
     
  29. Offline

    _infina_

    It is not actually an error, the program is casting a float to an int. It is accurate, just not precise.
     
  30. Offline

    Sh4d0w

    spoutcoords broken since spoutcraft 787
     
  31. Offline

    xZise

    Hmmm strange, I have a similar error: It doesn't show up any coordinates if I press F4. Could you please upload the code for 0.6.1 so I may take a look?

    Fabian
     

Share This Page