1. Homepage
  2. Gallery
  3. System Requirements
  4. Roadmap
  5. Forum
    1. Blueprints
    2. Tutorials
    3. Plugins
    4. Members
      1. Recent Activities
      2. Users Online
      3. Team
      4. Search Members
  6. Shop
  • Login

    Login

    Lost Password

    Third-Party Login

  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Products
  • More Options
  1. Rising World
  2. Forum
  3. Plugin API (Java Version)
  4. Plugins (Java Version)

TapeMeasure

  • Galveston01
  • Nov 20th 2016
  • 1Page 1 of 2
  • 2
  • Galveston01
    Intermediate
    Reactions Received
    97
    Posts
    402
    • Nov 20th 2016
    • #1

    Hi community,
    This is a simple plugin that allows you to measure the distance between two points. Points can be: me/mark/origin/spawn/spawnprimary/spawnsecondary/#player/(x;y;z)
    Possible commands:
    •/measure help
    •/measure setmark
    •/measure setmark point
    •/measure rmmark
    •/measure point1:point2


    Examples:
    /measure setmark
    ->sets mark on your position
    /measure setmark spawn
    ->sets mark on spawn point position
    /measure me:mark
    ->measures distance between you and your mark
    /measure #Galveston01:origin
    ->measures distance between #Galveston01 and the origin(0;0;0)
    /measure (0;1;2):(3;4;5)
    ->measures distance between (0;1;2) and (3;4;5)

    Files

    • TapeMeasure v1.1.3.jar

      (8.32 kB, downloaded 646 times, last: 15 hours ago)

    Edited 5 times, last by Galveston01 (Feb 25th 2018).

    Like 6
    • Quote
  • ArcticuKitsu
    Master
    Reactions Received
    158
    Posts
    2,143
    • Nov 20th 2016
    • #2

    Nice! Glad you filled in a void of someone asking to measure how far something is. Shall become far more useful when we gain horses, railways, among other things. You have my respect :thumbup:

    [My Rising World Unity Plans] :nerd:

    • Quote
  • zfoxfire
    Professional
    Reactions Received
    149
    Posts
    1,712
    • Nov 20th 2016
    • #3

    is it possible to get spawn point added?

    Master list of Zork

    • Quote
  • lenko
    Legendary
    Reactions Received
    1,609
    Posts
    5,162
    • Nov 20th 2016
    • #4

    Bestimmt eine Gute Hilfe :thumbup:

    • Quote
  • Galveston01
    Intermediate
    Reactions Received
    97
    Posts
    402
    • Nov 20th 2016
    • #5

    First of all thanks für the positive feedback


    Quote from zfoxfire

    is it possible to get spawn point added?

    Yes I can add this next day

    • Quote
  • zfoxfire
    Professional
    Reactions Received
    149
    Posts
    1,712
    • Nov 20th 2016
    • #6
    Quote from Galveston01

    First of all thanks für the positive feedback


    Yes I can add this next day

    awesome! Maybe add the player's home location as well. :)

    Master list of Zork

    • Quote
  • Galveston01
    Intermediate
    Reactions Received
    97
    Posts
    402
    • Nov 21st 2016
    • #7
    Quote from zfoxfire

    awesome! Maybe add the player's home location as well. :)

    Which home location do you mean? That one created by the HomePoint-Plugin?

    • Quote
  • zfoxfire
    Professional
    Reactions Received
    149
    Posts
    1,712
    • Nov 21st 2016
    • #8

    i meant the vanilla home point but that could work to.

    Master list of Zork

    • Quote
  • Galveston01
    Intermediate
    Reactions Received
    97
    Posts
    402
    • Nov 21st 2016
    • #9

    I still don't know which one you meant... ?(

    • Quote
  • zfoxfire
    Professional
    Reactions Received
    149
    Posts
    1,712
    • Nov 21st 2016
    • #10

    the home location set when you sleep in a bed or tent. :)

    Master list of Zork

    • Quote
  • Galveston01
    Intermediate
    Reactions Received
    97
    Posts
    402
    • Nov 21st 2016
    • #11

    Oh that one... I can't find a way to access it, I don't know whether this is possible with the API

    • Quote
  • zfoxfire
    Professional
    Reactions Received
    149
    Posts
    1,712
    • Nov 21st 2016
    • #12

    I'm looking at the API right now and yes, it doesn't look like there is a specific method to get that information but there is a getAttribute() function in the player class. You can probably call that and pass in the string SpawnPointPrimary or SpawnPointSecondary. Both are columns in the player table in the world database. SpawnPointPrimary referres to the last tent you slept in, SpawnPointSecondary referrs to a bed. If these are not set, then getAttribute will return Null.


    I'm not 100% positive is this is the way to use getAttribute but its my best guess. I'm assuming custom attributes are added to this same table as well.

    Master list of Zork

    • Quote
  • Galveston01
    Intermediate
    Reactions Received
    97
    Posts
    402
    • Nov 21st 2016
    • #13

    Ok I will try whether this works vor not. I gonna upload the updated Version tomorrow (today my Internet isn't working, tomorrow it should be OK again)

    • Quote
  • Galveston01
    Intermediate
    Reactions Received
    97
    Posts
    402
    • Nov 23rd 2016
    • #14

    Hi community,
    I updated the plugin to v1.1 an added the ability to use spawn, spawnprimary and spawnsecondary

    • Quote
  • zfoxfire
    Professional
    Reactions Received
    149
    Posts
    1,712
    • Nov 23rd 2016
    • #15
    Quote from Galveston01

    Hi community,
    I updated the plugin to v1.1 an added the ability to use spawn, spawnprimary and spawnsecondary

    Sweet! I was concerned that Player.getAttribute was for custom attributes only.

    Master list of Zork

    • Quote
  • PlainVanilla
    Beginner
    Reactions Received
    1
    Posts
    5
    • Apr 9th 2017
    • #16

    I realize that it's been awhile since anyone posted but I have a couple questions about this plugin.


    1st: Does it go into the plugins or scripts folder?


    2nd: Where on the screen do the measurements show up?

    • Quote
  • Galveston01
    Intermediate
    Reactions Received
    97
    Posts
    402
    • Apr 9th 2017
    • #17

    1.: Since it is a plugin it has to be placed in the plugin folder
    2.:they show up in the console: you have to enter a point to measure the distance to

    • Quote
  • sharkbitefischer
    Professional
    Reactions Received
    88
    Posts
    843
    • Feb 21st 2018
    • #18

    I like the way this works but 2 suggestions. It needs a way to turn off the mark once you are finished and how about adding a command like /measure x,y,z:x,y,z so we can manually add the coordinates we want to measure.


    also when I set a mark and measure it. then I log out to get rid of the mark. when I log back in and press my tab button to see who is on, everything freezes, it seems. The tab screen doesn't go away and I had to hard boot my computer to get controle again.


    this happened on both my single player and my multiplayer server that is rented. had to remove for this reason. If this can be fixed I would love to reinstall the updated version. I think this could be a valuable tool.

    Edited 2 times, last by sharkbitefischer (Feb 21st 2018).

    • Quote
  • Galveston01
    Intermediate
    Reactions Received
    97
    Posts
    402
    • Feb 24th 2018
    • #19

    I recompiled the plugin using the newest API version and uploaded the updated version. Please try whether it works properly again.
    Regards, Galveston01

    • Quote
  • Galveston01
    Intermediate
    Reactions Received
    97
    Posts
    402
    • Feb 24th 2018
    • #20

    Decided to add two new commands:


    /measure setmark
    Sets mark to players position


    /measure rmmark
    Removes mark if one was set


    New version is v1.1.2

    • Quote
    • 1Page 1 of 2
    • 2

Information

  1. Privacy Policy
  2. Legal Notice

Support

  1. System Requirements
  • Facebook
  • Twitter
  • YouTube
Powered by WoltLab Suite™
  1. Navigation
  2. Homepage
  3. Gallery
  4. System Requirements
  5. Roadmap
  6. Forum
    1. Blueprints
    2. Tutorials
    3. Plugins
    4. Members
      1. Recent Activities
      2. Users Online
      3. Team
      4. Search Members
  7. Shop
  8. Search
  9. Options
  10. Current Location
  11. Rising World
  12. Forum
  13. Plugin API (Java Version)
  14. Plugins (Java Version)
  1. User Menu
  2. Login
  3. Language
  4. English
    1. Deutsch
    2. English
This site uses cookies. By continuing to browse this site, you are agreeing to our use of cookies. More Details Close