Pl3xSpawn

Description

Main focus on this plugin was the ability to have a random location for a world's spawn. Got tired of users destroying the land around my spawn. So instead of spending a few hours each week cleaning up the mess I decided to just spread the users out to random locations so there are no high traffic areas that get griefed.

Random locations is not the default. By default this plugin will use Bukkit's spawn location. You can override this location and specify a certain spot. From there you also have the optional ability to set a radius from the spot for a random location.

Note: Don't let the term "radius" confuse you. This is actually a box, and not a circle. Lets say your radius is 100 with the spawn point at 0,64,0. This simply means the random location can be anywhere between -100,0,-100 and 100,256,100. The y value is calculated to the highest available block that isn't air (or water/lava if safe-random-spawn is true).

Now supports configurable unsafe-blocks starting with v1.1!

Enjoy! ^_^

Commands

  • /setspawn (random [radius]) Sets the current location you are standing in as the world's spawn point. Optional you can set a random radius to have a random location based around this location.
  • /spawn (world) Teleports you to the world's spawn location. If no world specified the current world will be used.

Permissions

  • pl3xspawn.setspawn Allows access to the /setspawn command.
  • pl3xspawn.spawn Allows access to the /spawn command.
  • pl3xspawn.spawn.changeworld Allows the user to specify the world in the /spawn command.

Default Config.yml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Enable debug info in console
debug-mode: false

# Enable colors in console output
color-logs: true

# Play enderman teleport sound when teleporting
use-teleport-sounds: true

# Force all players to the world's spawn when joining the server (override's last location)
force-spawn-on-join: true

# Force all players to the world's spawn when joining the server for the very first time
force-spawn-on-new-join: true

# Minimum allowed radius when using random locations
min-random-radius: 10

# Maximum allowed radius when using random locations
max-random-radius: 100

# Do not allow random locations over water or lava
safe-random-spawn: true

# Unsafe blocks. If safe-random-spawn is on a player will not teleport on the blocks listed here.
# A Full list of items that can be used here http://jd.bukkit.org/rb/apidocs/org/bukkit/Material.html
unsafe-blocks:
- WATER
- STATIONARY_WATER
- LAVA
- STATIONARY_LAVA
- LEAVES
  • "unsafe-blocks" was implemented in v1.1

TODO

Have a suggestion? Leave a comment!

Metrics

This plugin uses metrics to collect stats! It only collect basic things such as version type, and players online. If you want to see everything, click on the graph. Go into /plugins/PluginMetrics/config.yml to disable stat collecting if you wish.

MCStats


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files