
FancySetSpawn is a simple plugin for managing spawn points, with customizable messages and sound effects for teleportation and player joining. /setspawn, /spawn [Supports 1.21.x]

/setspawn command./spawn command.plugins folder of your Minecraft server./setspawn command./spawn command.The plugin configuration can be found in the config.yml file. Here you can modify messages and sound effects.
messages:
messageLocation: actionbar # Possible values: chat or actionbar
spawnSet: "&aSpawn has been set to your current location!"
teleportToSpawn: "&aYou have been teleported to spawn!"
spawnNotSet: "&cSpawn position is not set."
commandOnlyPlayer: "&cThis command can only be used by a player."
sounds:
teleport: "minecraft:entity.experience_orb.pickup"
setSpawn: "minecraft:entity.experience_orb.pickup"
playerJoin: "minecraft:entity.player.levelup" # Sound when a player joins
soundSettings:
volume: 1.0
pitch: 1.0
The plugin provides a simple API for other plugins:
// Example usage of the API in another plugin
public void teleportToSpawn(Player player) {
// Get the instance of the FancySpawn plugin
SetSpawn plugin = (SetSpawn) getServer().getPluginManager().getPlugin("FancySetSpawn");
if (plugin != null && plugin.isEnabled()) {
// Get the API
FancySpawnAPI api = plugin.getAPI();
// Teleport the player to the spawn location
api.teleportPlayerToSpawn(player);
}
}