⤧ SetTheSpawn ⤧

Last Updated: Apr 22, 2019 Game Version: 1.13

Download
Install

5,524

Jul 10, 2018

Owner: toldicsa

SetTheSpawn

Commands & Permissions | Config.yml | Placeholders | Messages.yml | Issues

 

 

Bug report here! (Click)

 

I ask everyone to use the latest version, because I may have fixed that bug.

 

Vote! Which spawn plugin is the best! Here

 

Overview
A fully configurable plugin that allows the player to teleport to the spawn point with one command, which is configurable a lot of features are useable.

 

Currently under repair:
- Add animated particle effects that can be edited.

 

Progress bar test


 

Features

➢ Set spawn location
➢ Teleport delay (in seconds)

➢ Import Essentials spawn to SetTheSpawn plugin.

➢ Cost of player moved, jumped & damage
➢ Progress bar
➢ Teleport cancel if the player moves, jump & damage.
➢ Teleport effect, sound & command (player or console).
➢ Void teleports to spawn.

➢ Option to prevent spawn use when player is in fire.

➢ Teleport to player bed spawn location.

➢ Launch firework when teleport to spawn.
➢ Customizable sign text in configuration.
➢ Per world spawn

➢ Per spawn costs

➢ Option to teleport player to spawn when afk status is true. (Requires EssentialsX)
➢ Gui settings

➢ If a player rides on a horse (more on Wiki) and teleports to the spawn, then the entity remains.

➢ Protect player after teleport (time in seconds)
➢ Title & actionbar supported (No plugin required)
➢ Check sneak mode while teleport
➢ Disabled worlds
➢ Spawn teleport (first join, join, respawn)
➢ Check fly before teleport
➢ Spawn cost (command & sign)
➢ Vault support (optional)
➢ Spawn sign

 

Feature comparison

Full

Commands
[ ] = optional arguments
< > = required arguments
( ) = command abbreviations
 
- /setthespawn (or /sts) - Main plugin info.
- /sts help - Help commands.
- /sts disable - Disable the plugin.
- /sts reload (or rl) - Reload the plugin.
- /setspawn [cost] - Set the spawn location.
- /sts bukkitspawn [player] - Teleport to the bukkit spawn.
- /sts stopalltask - Stop all currrent teleport task.
- /deletespawn (or /delspawn) - Delete spawn location.
- /spawn [player/all] - Teleport to spawn.
- /sts importessentialsspawn (or importessspawn) [group] - Imports the Essentials spawn to SetTheSpawn plugin.
- /sts setup - Open setup gui.
 
Permissions
setthespawn.* - Allow all SetTheSpawn permission.
setthespawn.reload
- Allows the player to use the "/sts reload" command. - default: op
setthespawn.help - Allows the player to use the "/sts help" command. - default: false
setthespawn.disable - Allows the player to use the "/sts disable" command. - default: op
setthespawn.plugininfo - Allows the player to use the "/sts" command. - default: false
setthespawn.togglespawn - Allows to the player to use "/sts togglespawn" command. - default: false
setthespawn.setspawn - You can use "/setspawn" command. - default: false
setthespawn.spawn.use - You can use "/spawn" command. - default: true
setthespawn.importessspawn - Allows to the player to use /sts importessspawn [group] command.
setthespawn.sign.use.everybody - Allows a player to use in sign everybody line to teleport all online players. - default: false
setthespawn.delspawn - You can use "/deletespawn" command. - default: fals
setthespawn.spawn.teleport.all - Teleport all players to spawn permission. - default: false
setthespawn.spawn.teleport.other - Teleport other player to spawn permission. - default: false
setthespawn.bukkitspawn - Allows a player to use the "/sts bukkitspawn" command. - v1.9
setthespawn.bukkitspawn.other - Allows a player to use the "/sts bukkitspawn <player>" command.
setthespawn.spawn.setup - Spawn settings gui. - default: false
setthespawn.sign.create - Sign create permission. - default: false
setthespawn.sign.break - Sign break permission. - default: false
setthespawn.sign.use - Sign use permission. - default: true
setthespawn.countdown.stopall - Allows a player to use /sts stopalltask command. - default: false
 
Bypass perms
setthespawn.bypass.cooldown - Bypass teleport cooldown permission. - default: false
setthespawn.bypass.blockspawninpvp - Bypass block spawn command in pvp. - default: false
setthespawn.bypass.fly - Bypass the flight when a player want teleport to spawn when flying. - default: false
setthespawn.bypass.sneak - Bypass the sneak mode when a player want teleport to spawn when sneak. - default: false
setthespawn.togglespawn.bypass - Bypass the togglespawn when the spawn has locked with command. - default: false
setthespawn.bypass.fire - Prevent spawn when player is in fire.
How to install
1. Open the plugins folder on your server.
2. Put the SetTheSpawn.jar file into the plugins folder.
3. Restart or reload the server.
 
Config

#=================================OOO====================================#
# SetTheSpawn Configuration File #
#=================================OOO====================================#
# config.yml file. Plugin version: 2.2 #
# Author, created by: montlikadani #
#=================================OOO====================================#
# [Default configuration] #
# https://github.com/montlikadani/SetTheSpawn/blob/master/config.yml #
# #
# [Placeholders] #
# https://github.com/montlikadani/SetTheSpawn/wiki/Placeholders #
# #
# [Tips] #
# - Use color coding '&' character, on this page: #
# http://minecraft.gamepedia.com/Formatting_codes #
# - If you find a bug, send here: #
# https://github.com/montlikadani/SetTheSpawn/issues #
# - If the string is empty does not send the message. #
#=================================OOO====================================#

# Use the Vault plugin for the plugin.
vault: false

# How many seconds do you have to wait for a player to be teleported?
# If 0 you do not have to wait.
teleport-delay: 0 # In seconds!

# Teleport progress bar.
progress-bar:
enable: false
# Progress bar size.
bar-size: 30.0
# Bar update fast in ticks.
fast: 2
# Teleport progress display mark.
mark: "|"
# When the teleport is ready.
done-color: "&a&l"
# When teleport is not ready yet.
not-done-color: "&c&l"
# Use %output%, %time% placeholder.
message-format: "&aTeleporting in:&7&l [%output%&7&l]&6 (&8%time%&6)"

# If the spawn can not be found, teleport it to the world spawn?
teleport-to-world-spawn-if-spawn-not-found: true

# Teleport op players to spawn. (Sign & spawn command)
# If false not teleport op players.
# If true teleport op players to spawn.
# This only sign & command work. (If everybody teleport)
teleport-op-players: false

# A player teleported to the spawn, how many seconds to protect the player from damage?
# Set 0 to disable.
no-damage-time: 0

# Teleports automatically to spawn, when a player afk status is true.
# Requires Essentials!
auto-teleport-to-spawn-when-player-afk: false

# Is it a spawn setting in separate worlds?
# This is typical for each function!
# If true, it will write to the spawns.yml file in the world where the player is currently in (setup).
# If it is false, it will write to the spawns.yml file, the world name for the coordinates, and so on.
per-world-spawn: false

# Teleport to the set player bed spawn. If the player bed spawn not found, teleports to the default spawn.
# The bed location not manage by this plugin!
teleport-to-bed-spawn: false

# In which worlds can spawn not be set?
disabled-worlds: []

# Disable spawn command in pvp.
disable-spawn-in-pvp:
enable: false
# Command disabling time in seconds.
time: 5
# Message when you attack a player or attack you.
message: "&cNow you can not teleport to spawn because you're still fighting with a player."

# Check if the player is flying mode?
# If it is true, you can teleport in flight too.
# If it is false, it will cancel the teleport delay.
# This ignores with setthespawn.bypass.fly permission.
allow-spawn-when-flying: true

# Prevent spawn teleport when player is in fire?
# This ignores with setthespawn.bypass.fire permission.
prevent-spawn-when-player-is-in-fire: false

# When a player presses the SHIFT button while teleporting, and sits in snake mode, will it cancel teleportation?
# This ignores with setthespawn.bypass.sneak permission.
check-sneak-while-teleport:
enable: false
message: "&cTeleporting is canceled because snake mode is enabled."

# Cost /spawn command or sign usage.
# This requires a Vault plugin.
spawn-cost:
enable: false
enable-permission: true
# If this is specified at the group, they can use the /spawn command without payment.
# If not specified, the /spawn command must be paid.
permission: setthespawn.bypass.spawncost
# This can be set as per-spawn when setting the spawn point.
cost: 3.0
# Sign usage price. (Same as /spawn command.)
sign:
enable: false
enable-permission: true
# If this is specified at the rank, they can use the spawn sign without payment.
# If not specified, the spawn sign usage must be paid.
permission: setthespawn.bypass.signcost
cost: 2.0

# Cancel teleport if:
cancel-teleport:
# Player was moved while teleporting.
move:
enable: true
# Message when the player moved.
teleport-canceled: "&cTeleport cancelled, you can't move!"
# If true when the player moves, the teleport delay will cancel.
# If false when the player moves, the teleport delay does NOT cancel it.
enable-permission: true
permission: setthespawn.bypass.movement
# Play sound when a player moved while teleporting.
play-sound:
enable: false
# Usage: SOUND_TYPE, volume, pitch
type: BLOCK_ENDER_CHEST_CLOSE, 8, 1
# If the player moved during teleporting, would the player pay for it or not?
pay-if-moved:
enable: false
cost: 0.20
enable-permission: true
permission: setthespawn.bypass.spawn.movedcost
# Use %cost% placeholder.
no-money: "&cYou do not have enough money to move during teleport.&e Cost:&a $%cost%"
# Player was jump while teleporting.
jump:
enable: true
# Message when the player jumped.
teleport-canceled: "&cTeleport cancelled, you can't jump!"
# If true when the player jump, the teleport delay will cancel.
# If false when the player jump, the teleport delay does NOT cancel it.
enable-permission: true
permission: setthespawn.bypass.jump
# Play sound when a player jump while teleporting.
play-sound:
enable: false
# Usage: SOUND_TYPE, volume, pitch
type: BLOCK_WOODEN_DOOR_CLOSE, 8, 1
# If the player jumped during teleporting, would the player pay for it or not?
pay-if-jumped:
enable: false
cost: 0.15
enable-permission: true
permission: setthespawn.bypass.spawn.jumpedcost
# Use %cost% placeholder.
no-money: "&cYou do not have enough money to jump in teleport.&e Cost:&a $%cost%"
# When the player is attacked while teleporting.
damage:
enable: true
# Message when the other player attacked.
teleport-canceled: "&cTeleport cancelled, you are in combat!"
# If true when the player is attacked, the teleport delay will cancel.
# If false when the player is attacked, the teleport delay does NOT cancel it.
enable-permission: true
permission: setthespawn.bypass.damage
# Play sound when a player attacked someone while teleporting.
play-sound:
enable: false
# Usage: SOUND_TYPE, volume, pitch
type: BLOCK_LEVER_CLICK, 8, 1
# If the player damage during teleporting, would the player pay for it or not?
pay-if-damage:
enable: false
cost: 0.5
enable-permission: true
permission: setthespawn.bypass.spawn.damagecost
# Use %cost% placeholder.
no-money: "&cYou do not have enough money for the teleport damage.&e Cost:&a $%cost%"

# When a player is being teleported, will plays an effect?
teleport-effect:
enable: true
# All effects:
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Effect.html
# Usage: EFFECT_TYPE, duration
effect: ENDER_SIGNAL, 10

# Teleport sound playback.
teleport-sound:
enable: false
# All sounds:
# 1.7.x: https://jd.bukkit.org/org/bukkit/Sound.html
# 1.8.x: http://docs.codelanx.com/Bukkit/1.8/org/bukkit/Sound.html
# 1.9.x - 1.13.x: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
# Usage: SOUND_TYPE, volume, pitch
sound: ENDERMAN_TELEPORT, 10, 1

# Launch firework when the player teleported to the spawn.
launch-firework:
enable: false
# If true, the features below do not apply to it.
random: true
flicker: true
trail: true
# All firework types: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/FireworkEffect.Type.html
type: STAR
# Colors 0 - 255
colors:
- 229,0,0
- 0,80,0
- 0,0,103
# The power to launch the firework.
power: 1

# Send title if:
title:
# When you have started teleporting, a title will also be displayed.
start-spawn:
enable: false
# Use %seconds% placeholder.
title: "&aTeleporting in"
subtitle: "&6%seconds%&a seconds"
# The time it takes for the title to fade into the screen. (In ticks)
fade-in: 10
# The time it takes for the title to stay on the screen. (In ticks)
stay: 30
# The time it takes for the title to fade out of the screen. (In ticks)
fade-out: 60
# This is when the player has teleported to the spawn and displays the title.
end-spawn:
enable: false
title: "&3Teleport"
subtitle: "&asuccess!"
# The time it takes for the title to fade into the screen. (In ticks)
fade-in: 10
# The time it takes for the title to stay on the screen. (In ticks)
stay: 30
# The time it takes for the title to fade out of the screen. (In ticks)
fade-out: 60
# When a player moves while teleporting.
player-moved:
enable: false
title: "&cYou moved!"
subtitle: "&eTeleport cancelled."
# The time it takes for the title to fade into the screen. (In ticks)
fade-in: 10
# The time it takes for the title to stay on the screen. (In ticks)
stay: 30
# The time it takes for the title to fade out of the screen. (In ticks)
fade-out: 50
# When a player jump while teleporting.
player-jump:
enable: false
title: "&cYou jumped!"
subtitle: "&eTeleport cancelled."
# The time it takes for the title to fade into the screen. (In ticks)
fade-in: 10
# The time it takes for the title to stay on the screen. (In ticks)
stay: 30
# The time it takes for the title to fade out of the screen. (In ticks)
fade-out: 50
# When teleporting player are attacked while teleporting.
player-damage:
enable: false
title: "&cA player was attacked!"
subtitle: "&eTeleport cancelled."
# The time it takes for the title to fade into the screen. (In ticks)
fade-in: 10
# The time it takes for the title to stay on the screen. (In ticks)
stay: 30
# The time it takes for the title to fade out of the screen. (In ticks)
fade-out: 50

# When does the player void, will the player teleport to the spawn?
void-on-spawn:
enable: false
# At that point, the player will be teleported to the spawn.
# Example: 5 - so Y:5.
height: 0
# If it is true, it does not hurt.
# If it is false, it hurts.
fall-distance: true
# When a player void, plays an effect?
teleport-effect:
enable: true
# All effects:
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Effect.html
effect: ENDER_SIGNAL
duration: 15
# Message when the player has void fall and teleported to spawn.
message: ""

# Teleport on command when the player teleported to spawn.
teleport-on-command:
enable: false
# Use %player%, %player-displayname%, %world%, %player-gamemode%, %player-health%, %player-max-health% placeholder.
# Use player & console arguments for first.
commands:
- "player: money"
- "player: kit"
- "console: eco take %player% 50"
- "console: money"

# Teleport to spawn if:
spawn-teleport:
# If the player joins the server, will it teleport to the spawn?
player-join: false
# If the player first joins the server, will it teleport to the spawn?
player-first-join: false
# When the player is died and teleported to the spawn.
respawn: false

# Spawn sign settings.
spawn-sign:
# Allows you to create and use the spawn sign.
enable: true
# Save signs automatically to a file when you place a sign?
save-sign-data: false
# If the player does not have permission to create a sign.
no-permission-create-sign:
# If it is true, it will break the sign.
# If it is false, it does not break the sign.
break-sign: false
# If it is 'enable: true', it writes to the sign.
setline:
enable: true
lines:
- "&cYou do not have"
- "&cpermission"
- "&cto create"
- "&ca sign!"
# If the spawn is not set up and what to write.
# Use %text% placeholder.
no-spawn:
- "&c[Spawn]"
- "%text%"
- "%text%"
- "%text%"
# If the spawn is set and what to write.
spawn-created:
lines:
- "&9[Spawn]"
- "%text%"
- "%text%"
- "%text%"
# Use %all% placeholder.
everybody:
- "&9[Spawn]"
- "%all%"
- "%text%"
- "%text%"
# If the world spawn is set and what to write.
per-world:
# Use %world% placeholder.
lines:
- "&9[Spawn]"
- "&6%world%"
- "%text%"
- "%text%"
# Use %all%, %world% placeholder.
everybody:
- "&9[Spawn]"
- "%all%"
- "%world%"
- "%text%"
# Play particle effect when you create a spawn sign?
play-particle-effect-on-sign-create:
enable: true
# All particle effects: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html
type: EXPLOSION_LARGE, 5

# Enable the gui setup?
enable-gui: false
# How many rows should the GUI have?
gui-rows: 1
# What should the name of the GUI be?
gui-name: "&5Spawn settings"
# Close the GUI when a player clicks on an item?
close-gui-when-player-clicked-on-a-item: true
# All GUI items are here. Add slots in the same format, and it will add items to the GUI.
# How to add new item in GUI?: https://github.com/montlikadani/SetTheSpawn/wiki/How-to-add-new-item-to-GUI?​
# Slot starts at 0 and end at 53 for a size 54 inventory.
items:
slot-0:
item: AIR
command: ""
slot-1:
item: AIR
command: ""
slot-2:
item: SIGN
durability: 0
name: "&3Setspawn"
lore:
- "&7------------"
- "&aSet spawn command."
- "&7------------"
command: setspawn
slot-3:
item: AIR
command: ""
slot-4:
item: ENDER_PEARL
durability: 0
name: "&6Teleport"
lore:
- "&7------------"
- "&aTeleport to the spawn."
- "&7------------"
command: spawn
slot-5:
item: AIR
command: ""
slot-6:
item: BONE
durability: 0
name: "&4Delete spawn"
lore:
- "&7------------"
- "&5Delete spawn location."
- "&7------------"
command: delspawn

#=========================================#
# Plugin Settings #
#=========================================#
# The SetTheSpawn plugin is disabled (false) or enabled (true).
enabled: true

# bStats Metrics.
metrics: true

# Check for updates.
check-update: true

# Log plugin messages into console.
logconsole: true

# Logging to file messages.
log-to-file: true

# Plugin enable/disable messages in console.
# Use %prefix%, %newline% placeholder.
plugin-enable: '%prefix%&a The plugin successfully enabled&6 v2.2&a!'
plugin-disable: '%prefix%&c The plugin successfully disabled!'

# DO NOT CHANGE THIS!
config-version: 6

 

How to add new item to GUI?

Do not write '[ ]'.

items:
slot-[number]:
item: [item type that will be clicked on]

durability: [durability of item]
name: [name of item when hovered over]
lore:
- [text you want on that line]
- [text you want on the next line]
command: [command to be executed by player when item is clicked]

More information here.

Create a spawn sign

How do I make a spawn sign?
Important! If the sign is not enabled in the configuration, then write it down correctly.

  1. Join the server.
  2. Put a sign anywhere.
  3. Write this on the sign: [Spawn]
  4. Done!
To 3rd (NOT required): If you want teleport everyone, use the spawn sign:
[Spawn]

everybody or everyone

Placeholders

Config.yml file placeholders

%seconds% - Teleport countdown time
%newline% - Adds a new line.
%time% - Teleport countdown time
%prefix% - Plugin prefix

%cost% - Cost
%player% - Player name
%player-displayname% - Player display name
%world% - World name
%player-gamemode% - Player game mode
%player-health% - Player current health
%player-max-health% - Player max health
%output% - Output message
%sender% - Sender name (console or player)
%text% - Sign text
%all% - Everybody or everyone in sign
%color% - Sign color line 0

Messages.yml file placeholders.

%command% - When you type the command (example: /setthespawn), it writes the command to it.
%newline% - Adds a new line.
%prefix% - Plugin prefix
%args% - Command argument
%perm% - Permission name
%subcmd% - Sub command
%world% - World name
%player% - Player name
%seconds% - Teleport countdown time
%cost% - Cost
%sender% - Sender name (console or player)

%number% - Invalid number format

These placeholders are not for all of the features!

Particle effects

Sounds

What bugs can occur when using spawn?
Check it out: Click

 

Dependencies
Vault (optional)
(Only if you want to pay /spawn command.)

EssentialsX (optional)

- If you want to import spawn

- If you want the afk-status option

 

Before you start the server and use the plugin
Before you start the server and use the plugin, delete the older spawn plugins beforehand, because if there are two spawn plugins on the server and commands are the same, command errors may occur.

 

More

Minecraft 1.7.x-1.13.x versions, 1.6.x Does not work anymore!


View full changelog: Click

 

Images

 

bStats


Comments

Posts Quoted:
Reply
Clear All Quotes