Fast Travel Waypoints

Fast Travel Waypoints

Discoverable, scaling priced waypoints

  • Author: ben657
  • Version: 1.035

Description

This plugin allows for admins to define a set of named points which users can warp to whenever they want; given that they have previously been there and discovered the point. Going to a point will cost the player money. The amount will be defined by an equation given by an admin in the config.

Price equations

The price from one point to another is defined by an equation in the config. This can contain one of several variables and symbols to allow for customisation of prices.

+,-,*,/ = Add,Minus,Multiply,Divide

[DISTANCE] = distance between the player and the portal

[XWORLD] = A value depending on whether the teleport is across worlds. 1 if across worlds, 0 if in the same world.

[PWRLVL] = the players overall mcMMO power level, if it is running

[LVL] = the players normal minecraft exp based level

Example: [DISTANCE] * [PWRLVL] / 10 would divide the power level by 10, and multiply it by distance. (Follows BIDMAS, Brackets, indicies, division, multiplicaion, addition, subtraction)

Regions

You can create square regions in your world, in which travel between portals will be free. So a region over a city for example, traveling from a portal at the entrance to the castle withing for example will be free.

Commands/Permissions

  • /waypoint || /waypoint list - lists each waypoint available and the price to it
  • /waypoint list all - lists all waypoints, regardless of if they have been found - FTW.admin
  • /waypoint create [name] - creates a waypoint with the given name - FTW.admin
  • /waypoint delete [name] - deletes the waypoint with the given name - FTW.admin
  • /waypoint region create [name] - creates a region with the given name - FTW.admin
  • /waypoint region delete [name] - deletes the region with the given name - FTW.admin
  • /waypoint [name] - tries to teleport you to the given waypoint, and charge the cost to your wallet - FTW.player

Requirements

  • Tested on: CraftBukkit 1.5 R0.1 Development build
  • External libs: BeanShell (equation parsing) - This must go in <server dir>/plugins/lib/
  • Plugins: An economy plugin of your choice + Vault

Summa XR banner

Check out this plugin in action on the Summa Crossroads server!

You must login to post a comment. Don't have an account? Register to get one!

  • 10 comments
  • Avatar of Nobula Nobula May 04, 2013 at 19:23 UTC - 0 likes

    Would it be possible to add a TELEPORT OTHER function? (so I could build a hub-like Grand Central station for my players?)

    The idea would be that I build my teleport hub and (either via command block or, if the functionality were there, signpost) define where the pressure plate, button, portal, etc. would send a player while still observing discovered waypoints and costs..

    Just thought I'd ask if that was on your radar at all.

    Thanks again!

  • Avatar of xf900 xf900 Apr 29, 2013 at 18:02 UTC - 0 likes

    @Nobula: Go

    Yeah, that's definitely a command conflict, the help text there isn't anything i've written. Glad FTW works well for you ^^

    BFAK:ben657,11128,18a5c8c30c4345bba69d7f94cdf4c6d1198907114226c8934c7163f00d18422f

  • Avatar of Nobula Nobula Apr 29, 2013 at 17:18 UTC - 0 likes

    Thank you! You were right!

    If I use "/FTW" all of the spawn points are still there!! I can warp to them using, "/FTW <waypoint>". I have to use "/FTW waypoint ..." in order to access all the other create/edit/delete functions so it's all working except for the "waypoints" command which seems to be conflicting with something.

    If I type, "/waypoint help" I get the following help (which I'm not sure is part of yours or Citizens2):

    /waypoings provider [provider name] (-d) - Sets the current waypoint provider /waypoints disableteleporting - Disables teleportation when stuck (temporary command)

    Other than "/waypoint help", typing "/waypoint" does nothing at allno error message, no feedback whatsoever.

    Hope this is more useful info than my last post—this mod has really made my server so much more fun for our users. Thank you again for such a great piece of work!

    -n

  • Avatar of xf900 xf900 Apr 22, 2013 at 23:11 UTC - 1 like

    @Nobula: Go

    Hmm, sounds like a command conflict somewhere... I'll add a couple of aliases which will work for when the usual command doesn't, should solve the problem :)

    Also, thanks for the kind words! Always nice to know the plugin's being used ^^

  • Avatar of Nobula Nobula Apr 22, 2013 at 21:39 UTC - 0 likes

    LOVE this mod. Currently working well on my server but found that installing Citizens (for RPG-esque NPCs and quests) breaks Waypoints. (none of the functionality seems to work: list, create, etc.)

    All I can see is the instructions for accessing "Waypoint Help"

    I know this isn't much to go on, but I'm not really sure what other information I could give that might be useful.

  • Avatar of SXRWahrheit SXRWahrheit Apr 16, 2013 at 15:37 UTC - 1 like

    @diannetea: Go

    Updated a while ago, subscribe so you get upload notifications :)

  • Avatar of diannetea diannetea Mar 16, 2013 at 20:46 UTC - 0 likes
  • Avatar of xf900 xf900 Mar 04, 2013 at 18:50 UTC - 1 like

    @diannetea: Go

    The exp levels is already in, just use [LVL] in your equation. I just fixed up the description so that should be easier to see. :)

    As for the zip file, I'll need to check if I'm allowed to distribute the lib, but good idea.

  • Avatar of diannetea diannetea Mar 04, 2013 at 16:19 UTC - 0 likes

    Also, could you alternatively make it cost exp levels?

  • Avatar of diannetea diannetea Mar 04, 2013 at 16:10 UTC - 0 likes

    I feel like you should create a rar or zip file with the lib folder, it would make it easier for people to install (esp those who don't know what they're doing or don't have the patience to read through)

  • 10 comments

Facts

Date created
Feb 10, 2013
Category
Last update
Apr 08, 2013
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
Fast Travel Waypoints
Downloads
556
Recent files

Authors