[MISC] MinecartMeter v1.0 - See how far the minecart trip brought you, and the time it took [1060]

Discussion in 'Inactive/Unsupported Plugins' started by Oddstr13, Aug 17, 2011.

     
  1. Offline

    Oddstr13

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    MinecartMeter - See how far the minecart trip brought you, and the time it took.

    MinecartMeter BukkitDev page

    Features:
    • The duration of the minecart ride.
    • Direct line distance from start to stop (enter to exit).
    • Distance in number of blocks traveled.
    • Highly configurable.
    Screenshots:
    [IMG]
    [IMG]

    Config:

    Code:
    # enable debug mode?
    debug: false
    # options
    option:
        clock:
            # display text and time when player exits the minecart?
            arrival: true
            # display text and time when player enters minecart?
            departure: true
            # use ingame times?
            ingame: true
            # use in real life clock?
            real: false
        traveltime:
            # show the time the minecart ride took, in real life time?
            real: false
            # show the time the minecart ride took, in minecraft time?
            ingame: true
        traveldistanse:
            # show number of blocks the minecart have moved?
            real: true
            # show distance between the point the player entered the minecart, and the point of exit?
            air: true
    # customize messages
    format:
        text:
            custom:
                clock:
                    real:
                        arrival:
                            # enable custom message?
                            enabled: false
                            # the text before the information (time, distance etc.)
                            prefix: 'You arrived at '
                            # the text after the information
                            sufix: '. Thank you for choosing Minecart Railways.'
                        departure:
                            enabled: false
                            prefix: 'Welcome to Minecart Railways, the clock is now '
                            sufix: '. Have a nice ride.'
                    ingame:
                        arrival:
                            enabled: false
                            prefix: 'You arrived at '
                            sufix: '. Thank you for choosing Minecart Railways.'
                        departure:
                            enabled: false
                            prefix: 'Welcome to Minecart Railways, the clock is now '
                            sufix: '. Have a nice ride.'
                traveltime:
                    real:
                        enabled: false
                        prefix: 'The trip took '
                        sufix: '.'
                    ingame:
                        enabled: false
                        prefix: 'The trip took '
                        sufix: '.'
                traveldistanse:
                    real:
                        enabled: false
                        prefix: 'You have traveled '
                        sufix: ' meters by railroad.'
                    air:
                        enabled: false
                        prefix: 'You have traveled '
                        sufix: ' meters in direct line.'
        time:
            # display AM/PM instead of am/pm?
            upperAMPM: false
            # true = 24hour clock, false = am/pm
            24hour: true
            # 0 = short format, 1 = long format, 2 = custom format
            traveltime: 0
            # if traveltime == 2, use those variables
            custom:
                prefix: ''
                sufix: ''
                seperator: ', '
                lastseperator: ' and '
                minutes: ' Minutes'
                second: ' Second'
                hours: ' Hours'
                hour: ' Hour'
                weeks: ' Weeks'
                minute: ' Minute'
                days: ' Days'
                seconds: ' Seconds'
                millisecond: ' Millisecond'
                day: ' Day'
                milliseconds: ' Milliseconds'
                week: ' Week'

    Commands:
    Code:
    # reload configuration - works in console or ingame as op
    /minecartmeter reload
    Changelog:
    • 2011.08.17 - v.1.0
      • Initial release
    Download:
    Thanks to:
    • The bukkit team - for making this all possible.
    • @captainawesome7 - for the tutorial on how to use Bukkit's Standard Configuration Tutorial.
    • @sk89q and his plugins - looking at working code helps when you are stuck in the coding.
    Let me know what you think.
    What do you like about it?
    Is there anything you don't like about it?
    Is there anything i can improve on it?

    I made this plugin because i was wondering about how long a railroad on my server was, and the exact time it took to ride it.
    I'm releasing it because i didn't find any similar plugins, and thought someone else might want to use it too.
    - Oddstr13

    This post has been edited 4 times. It was last edited by Oddstr13 Oct 2, 2011.
  2.  
  3. Offline

    captainawesome7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hey you released it, and bravo on the giant config ;)
  4. Offline

    Oddstr13

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks :)
    Why compile a new jar to change something, when you can just edit a text file? :p
  5. Offline

    chernobyl360

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    you should add a mileage counter on the cart itself.

    when it was created and by whom
    the mileage
    total people that used it...
  6. Offline

    Oddstr13

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That should be doable, but when would the information get displayed?
    On my server, it's mostly CraftBook that creates and destroys minecarts, and they don't run that many more meters than the player.

    This would also require persistence (saving the information to disk), something that my plugin doesn't do with the current features.

    Can you tell me more about why you want those features?
  7. Offline

    chernobyl360

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    just really a thing for show. its not really all that important. i thought maybe it would make the plugin more realistic..

    EDIT well the idea would be to left click the minecart and it would show up on the chat.

    This post has been edited 1 time. It was last edited by chernobyl360 Aug 18, 2011.
  8. Offline

    EdTheLoon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Nice! May use this when I get a new server host :D

Share This Page