Skip to content

Spigot plugin adding aliases to teleport commands in Minecraft

License

Notifications You must be signed in to change notification settings

maxnz/TeleportAlias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeleportAlias

Spigot plugin adding aliases to teleport commands in Minecraft. Using the bash variable syntax, an alias can be used as a replacement for the actual coordinates. The plugin will then replace the alias with the coordinates before calling the minecraft:tp command.

Usage

Use the teleport command just like you would normally. To use an alias, type $name instead of coordinates.

Example

Example1-1 Example1-2

/tp -

Anyone who has used a terminal like bash long enough may have heard of the cd - command, which brings you back to the directory you just ran cd from. /tp - works the same way, taking you back to the last place you teleported from. /tp - only saves teleport data when you are teleported by a command. Teleportation caused by ender pearls, nether portals, etc. won't affect the location that /tp - will take you back to.

Example2-1 Example2-2

Modifying Aliases

Commands

  • /addalias alias x y z - Add a new alias
    • Requires teleportalias.addalias permission
  • /editalias alias x y z - Edit an alias
    • Requires teleportalias.editalias permission
  • /listalias - List all aliases
    • No permissions required
  • /removealias alias [alias...] - Remove an alias
    • Requires teleportalias.removealias permission

Permissions

  • teleportalias.* - Grant access to all teleportalias commands
  • teleportalias.addalias - Grant ability to add new aliases
  • teleportalias.editalias - Grant ability to edit an existing alias
  • teleportalias.removealias - Grant ability to remove existing aliases

About

Spigot plugin adding aliases to teleport commands in Minecraft

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages