Quantcast
Channel: Server Mods from Bukkit.org
Viewing all articles
Browse latest Browse all 2356

TravelGates

$
0
0

TravelGates

Teleportation System & Nether Portals Substitution

Latest version: v1.10.11

Warning: the latest version requires Bukkit 1.4.6 ! (tested with 1.4.6-R0.2)

(Version 2 still in progress...)

Watch the source code of TravelGates on GitHub.

Description:

This plugin intends to set teleporting destinations where player can be teleported if he is standing on anonther destination. To split destinations as if they were on separated servers, player's inventory can be cleared. The player is facing the same direction, after being teleported, as the OP when the destination is created. The teleportation works through different worlds too. You can also use Nether Portals to be teleported. Just add a "TravelGates" Sign on the Nether Portal, facing the player's head. Teleportation blocks also allow you to be teleported around an existing destination. You can also manage additional worlds.

Check this page for more detailed information about the teleportation system.

This plugin is multilangual.

Compatibility with Bukkit: This plugin must be used with Craftbukkit version 1.1-Rx. Previous versions won't work.

Video tutorial

How to setup this plugin from scratch:

  1. Download the latest build: TravelGates-x.x.x.zip, where x.x.x is the latest version
  2. Extract this archive. You have two files : TravelGates-x.x.x.jar and resources-x.x.x.zip
  3. Extract the resrouces-x.x.x.zip archive
  4. Create a directory named "TravelGates" in your "plugins" directory, inside the directory of your Minecraft server (optionnal)
  5. Move the TravelGates-x.x.x.jar file in the "plugins" directory
  6. Inside the resources directory you have created by extracting the previous archive, move the travelgates.conf file in the "TravelGates" directory
  7. Repeat the previous step with the language file of your choice. You can find samples of language files in the "resources\messages" directory. (feel free to update existing files or make your own)
  8. Configure the configuration file as it is described in the Readme (page or file)
  9. Restart the Minecraft server
  10. Enjoy !

Please see the README page for more information. You can also go to the english language sample file page to configure the ingame messages.

Check the Permissions page for more information about permissions used in this plugin.

If you want to see an example of the default configuration file, click here !

Usage :

Main command is "/travelgates" but you can use the alias "/tg".
All commands and destinations are case insensitive.

See the Examples page to see examples of the most "complicated" commands this plugin offers.

Admin commands:
  • /tg {destination} : teleport player
  • /tg add {destination} [-options] : add a destination.
  • /tg del {destination} : delete a destination.
  • /tg save : force to save all destinations
  • /tg debug : toggle the debug mode
  • /tg options {destination} -[options] : update destination's options. Tthe "-" character is mandatory.
  • /tg update {destination} -[options] : same as /tg options
  • /tg worlds ({world}|*) [-lu] [world_type]: display available loaded worlds with no options. World name use the same pattern as destinations. Wildcard * can be used to display all worlds in the server directory. Use options [-lu] to load or unload a world. Without options, it will display the state of the world (loaded or unloaded). With the l option is used, you can add the world type : (normal|nether|end), default is normal. You can't unload worlds which have still some players.
  • /tg config: display current configuration
  • /tg perms : toggle the permissions activation (reload permissions configuration if you enable them)
  • /tg signtp : toggle the usage of sign to teleport
  • /tg portaltp : toggle the usage of the nether portal to teleport
  • /tg clearallinv : toggle the state of the clear all inventory option
  • /tg autosave : toggle the auto save
  • /tg tpblock : modify or toggle the tp block
  • /tg {destination} [-f] : teleport player to the destination if he is standing on an existing location. If using -f, the teleportation can be done from everywhere.
Users commands:
  • /tg list : display all destinations available to the player.
  • /tg details {destination} : display all destinations, their locations and options to the player. You can specify a destination to see its own details.
  • /tg restrict {destination} : display allowed destinations from the given destination
  • /tg loc {destination} : display 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 to the destination.
Other teleportation means:
  • 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 file), 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. You can place the destination on the Obsidian blocks or on blocks beside of the portal.
  • Using a teleport block: You can be teleported if you use a teleportation block, for instance lime wool. You have to cover a rectangle surface containing the destination with this kind of block to be teleported. Max range around the destination is 5 block (6 with the destination block). All these block have to be at the same height. Just under the player location when the destination has been added.
  • Check this page for more detailed information about Nether Portals and Teleportation block features.
Available options:
  • i = clear inventory while travelling to a destination
  • a = admin teleport only
  • s = instant save when adding a new destination or updating the options
  • p = set the position of your destination as following -p(world,x,y,z) or -p(x,y,z), and "y" can be equal to "?"
  • r = set restricted destinations where players are allowed to go as following : -r{dest1,dest2,dest3} -r{+dest1,-dest2} -r{} -r
  • f = force the teleportation to a destination (without being on another destination)

Example: /tg add mydest -iar{test}p(world,5,?,20)s -> Add the destination "mydest", clear the inventory after being teleported, "mydest" is only for admins, the "test" destination is the one target destination allowed to travel to, the location is in the world named "world" at the location x=5, y=max available height, z=20, and finally save the new destination.

More exhaustive information in the README.txt file

More about the Nether Portals usage:
  • You have to use a TravelGates sign. So, the destination and the TravelGates tag.
  • You can use a lever to toggle the state of the Portal or type it manually.
  • The states can be modified in the messages file, instead of using -ON- and -OFF-
  • -ON- with the tag [TG] (or [TRAVELGATES]) and an existing destination : you will be teleported to the destination
  • -OFF- Regular Nether teleportation.
  • If the Sign is invalid, you will be teleported to the Nether.
  • If the destination is the same where the portal is standing, teleportation will be canceled. If the Portal is not placed on an existing destination, or adjacent to an existing destination, the teleportation will also be canceled.

Medias

Source code on GitHub :Source Code

Videos :New youtube video of Nether Portals (in v1.5)French youtube trailer (in v1.0)

Pictures: Some example of TravelGates's teleportation Signs:
Sign control to enable/disable the Nether Portal Substitution :

Changelog :

Please see the Changeslog page

Next versions :

See the Todo list in the changeslogs file in the resources archive file. But I note for myself:
  • Use the generic utilities developped for Linked Chest
  • Use the language command when it will be developped in LinkedChest
  • If I were courageous, I would refactor completely the plugin with the LinkedChest core. Maybe one day !

Known bugs:

  1. It is not a bug, but you have to know it. If you try to modify the configuration file manually and try to reload all plugins with the /reload command, it would not work. All data is saved when the plugin is disabled, with the current ingame config. So, your configuration manually changed will be ignored.

In Case of Bugs:

If you encounter some bugs, please use the /tg debug in game command and send me the server logs by creating a new ticket.You can also enable the debug mode at the beginning of the plugin loading by using the configuration "debug=true" in the configuration file. Thanks.


Viewing all articles
Browse latest Browse all 2356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>