TravelGates Plugin v1.6.2 by Ghomerr [1337]

This plugin is multilangual and uses a configuration file. 
It should be compatible with Bukkit Builds #1185 & #1240 & #1317. (no changes for this plugin)


The configuration file is "travelgates.conf" and has to be placed in the "TravelGates" directory in your plugins directory.
"TravelGates" directory is created automatically.
Otherwise, you have to create it yourself because this plugin will be disabled if data can't be stored.
Each missing parameter will be ignored and the default value will be used. (See the example configuration file)

Configuration parameters:
    language                : set the languages of the players's messages. Has to be the same value as the message file name. (Example : language=en -> messages_en.lang)
    usepermissions          : (true/false) use PermissionsBukkit or PermissionsEx or Permissions (in that order, depending on what plugin you have)
    teleportwithsign        : (true/false) use the sign to teleport (right-click on a sign or target a sign while typing /tg)
    teleportwithportal      : (true/false) use Nether Portals substitution
    debug                   : (true/false) use to enable the debug mode when the plugin is loading.
    clearallinventory       : (true/false) use to clear the armor content when the "i" option is set to a destination

You have to use a messages_xx.lang file corresponding to your language defined in the configuration file. 
The "xx" has to match with the value in the configuration file.
The messages file has to be placed in the TravelGates directory.


Permissions Compatibility : supports PermissionsBukkit, PermissionsEx and Permissions 2.x/3.x plugins (they will be searched in this order)
Permissions nodes are the followings:
For admins:
        travelgates.add       # Add a Destination
        travelgates.del       # Remove a Destination
        travelgates.admintp   # Teleport to an Admin's Destination
        travelgates.save      # Request instant save of destinations
        travelgates.options   # Update destination's options
        travelgates.debug     # Toggle the Debug Mode

For users:
        travelgates.teleport   # Teleport a player a sign or the command /tg
        travelgates.portal     # Teleport a player using a Nether Portal
        travelgates.list       # View the list of Destinations
        travelgates.details    # View the detailed list of Destinations
        travelgates.loc        # View the location of the Destination
        travelgates.name       # View the name of the Destination where player is standing
        travelgates.sign       # Allow player to update the Portal Sign
        travelgates.help       # View Help

    
Plugin in-game usage:
    Main command is "/travelgates" but you can use the alias "/tg".
    All commands and destinations are case insensitive.
    /tg add <destination> [-options] : add a destination. The "i" option allowes the player to be teleported without loosing his stuff. Only OP's can perform this command. The destination is the current OP's Location AND direction (yaw/pitch) !
    /tg del <destination> : delete a destination. Only OP's can perform this command.
    /tg save : Force saving destinations
    /tg debug : Toggle the debug mode
    /tg options <destination> [-options] : update desintation's options
    /tg list : display all destinations available to the player.
    /tg details : display all destinations, their locations and options to the player.
    /tg loc <destination> : display the location of the destination.
    /tg name : display the name of the location where the player is standing.
    /tg help : display short help of the plugin.
    /tg <destination> : teleport player to the destination if he is standing on an existing location.
    
    /tg while targetting a sign containing the name of an existing destination : do the same as /tg <destination>. The destination can be written at any line of the sign.
    Right click on a sign containing on a line [TG] or [TRAVELGATES] (case insensitive) and on another line or on the same line (order doesn't matter) the name of an existing destination : do the same as /tg <destination>.
    Use Nether Portals : Place a TravelGates' sign (see above) on a Nether Portal with the "-ON-" state (defined in messages), configured with a lever or directly on the sign, and use the Portal as usual. The sign has to be placed on the portal bloc facing the head of the player.
    
Options in "add" or "options" commands:
    a = admin tp only
    i = clear inventory (if the configuration "clearallinventory" is set to true, whole armor and the item wielded will be cleared too)
    s = instant save when adding a new destination or update options of the given destination