Using Hostname Teleport

Introduction

WorldPos v3.1 introduced a new feature called hostname teleport. This feature allows for the automatic teleportation of players to a certain world based on the IP address/domain name/hostname that the player connected to the server with. This is a powerful feature that is mostly useful to hybrid servers, servers that have multiple worlds setup. This is all possible because when the minecraft client connects to a server, it purposely sends the hostname the player entered to the server.

Example

Player1 connects to your server with the hostname "yourserver.com"

- Player1 is not effected by hostname teleport, the player is teleported to the default world (Bukkit handles it)

Player2 connects to your server with the hostname "survival.yourserver.com"

- Player2 is effected by hostname teleport, the player will be teleported to the world "survival" once they spawn

Player3 connects to your server with the hostname "build.yourserver.com"

- Player3 is effected by hostname teleport, the player will be teleported to the world "creative" once they spawn

This is an example of what the config.yml would look like for this setup:

hostnames:
 creativeWorld:
  hostname: build.mike724.com
  world: creative
 survivalWorld:
  hostname: survival.mike724.com
  world: survival

And the players would need the following permissions:

WorldPos.hostname.creativeWorld
WorldPos.hostname.survivalWorld

Comments

Posts Quoted:
Reply
Clear All Quotes