RandomPlacer

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

Description

This is my first plugin, and I made it because sometimes players would like to be isolated or find a spot far away from somewhere to build a house. This plugin allows them to teleport to a random location with a command. You may set a boundary for how far they can teleport to limit lag or have them teleport to an arena or something. This simple plugin could help servers be more spread out in their maps and not be really cluttered together.

Important

Current users will need to edit their config, changing `x` to `positiveX`, `z` to `positiveZ`, `nx` to `negativeX`, and `nz` to `negativeZ` or their limits will be reset. This was changed because it may have been confusing at first.

Commands/Permissions

  • Type `/tpr` to teleport to a random location on the map. - This requires the permission `RandomPlacer.use`
  • Use `/tpr reload` to reload the config. - This requires the permission `RandomPlacer.reload`

Config

  • RandomPlacer.limit.positiveX: This is the limit of how far the player can teleport on the x axis. Default is 1000.
  • RandomPlacer.limit.positiveZ: This is the limit of how far the player can teleport on the z axis. Default is 1000.
  • RandomPlacer.limit.negativeX: This is the limit of how far the player can teleport on the -x axis. Default is -1000
  • RandomPlacer.limit.negativeZ: This is the limit of how far the player can teleport on the -z axis. Default is -1000
  • RandomPlacer.Teleported: Tells the player their current coordinates after the teleport. {x} will be replaced with their x, {z} will be replaced with their Z.
  • Error.Cooldown: Tells the user they have to wait for the command to cooldown before using it. {cooldown} is the number of seconds they have to wait, {s} is for adding an S to the end if the word should be plurl.
  • RandomPlacer.cooldown: How many seconds the user has to wait between sending the command again.

Source

Source code can be found here.

Change Log

1.0.0: Initial commit, basic teleportation within limits

1.1.1: Added a cooldown, fixed the config, cleanup

2.0: Cleaned up the code a ton, some edits to the config.


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    40373
  • Created
    Jun 3, 2012
  • Last Released File
    Mar 17, 2013
  • Total Downloads
    26,034
  • License

Categories

Members

Recent Files