/MSpawns

Multiple Spawn plugin for PocketMine-MP

Primary LanguagePHPMIT LicenseMIT

start2

MSpawns

Multiple spawns plugin for PocketMine-MP

Download!

Category

PocketMine-MP plugins

Requirements

PocketMine-MP API 3.0.0

Overview

MSpawns let you set multiple spawns on your PocketMine-MP server.

EvolSoft Website: https://www.evolsoft.tk

This Plugin uses the New API. You can't install it on old versions of PocketMine.

MultiWorld Bugs (for eg. Invisible chunks...) aren't related to plugin or PocketMine but to Minecraft PE.

You can set a global spawn (hub/lobby) and a spawn for each world. You can also customize spawn settings, spawn messages... and you can also set aliases! (read documentation)

Donate

Please support the development of this plugin with a small donation by clicking 💵 here. Your small donation will help me paying web hosting, domains, buying programs (such as IDEs, debuggers, etc...) and new hardware to improve software development. Thank you 😄

Documentation

Configuration (config.yml):

---
# Available Tags for messages:
#  - {PLAYER}: Show current player name
#  - {PREFIX}: Show plugin prefix
#  - {WORLD}: Show current world name
# Show hub-message or spawn-message when a player joins
show-messages-onjoin: true
# Force teleportation to hub when a player joins
force-hub: false
# Show message when a player teleports to hub
enable-hub-message: true
# Force teleportation to spawn when a player joins (obviously if you enable force-hub, force-spawn won't work)
force-spawn: false
# Show message when a player teleports to spawn
enable-spawn-message: true
# Enable aliases usage
enable-aliases: true
# Teleport a player to the spawn/hub when they die
# 1 = Teleport to spawn 2 = Teleport to Hub
teleport-on-death: 1
# External hub server 
hub-server:
 # Enable external hub server
 enabled: false
 # Name of the hub server
 name: "External Server"
 # Hostname of the hub server
 host: 127.0.0.1
 # Port of the hub server (default 19132)
 port: 19132

Messages (messages.yml):

---
#Hub message
hub-message: "{PREFIX} &bWelcome to Hub, &a{PLAYER}"
#No hub message
no-hub: "{PREFIX} &cNo hub set"
#Spawn message
spawn-message: "{PREFIX} &bTeleported to &e{WORLD}&b Spawn"
#No spawn message
no-spawn: "{PREFIX} &cNo spawn found in this world"
#Invalid world
invalid-world: "{PREFIX} &cWorld not found"
#Spawn aliases disabled
aliases-disabled: "{PREFIX} &cSpawn aliases are disabled on this server"
...

Commands:

/mspawns - MSpawns commands (aliases: [ms])
/sethub - Set hub (aliases: [setlobby])
/delhub - Delete hub (aliases: [dellobby])
/hub - Teleport to hub (aliases: [lobby])
/setspawn - Set world spawn
/delspawn - Delete world spawn
/spawn - Teleport to world spawn
/setalias - Set alias
/delalias - Delete alias

Aliases:

With aliases you can create commands that teleport players.
You can manually edit them in aliases.yml file.
If you want to create an alias you must specify the name and the target world (remember that the target world must have a spawn set)
Example usage: Imagine that you have a world called "pvpworld" and you want to set an alias called "pvp".

  1. Set spawn in world "pvpworld" with /setspawn
  2. Do /setalias pvp pvpworld
    To use the alias you must simply do /pvp and you will be teleported to "pvpworld" spawn

Remember that you can use aliases only if you set to true the value of "enable-aliases" in config.yml

Permissions:

  • mspawns.* - MSpawns permissions tree.
  • mspawns.info - Let player read info about MSpawns.
  • mspawns.reload - Let player reload MSpawns.
  • mspawns.delhub - Let player delete hub.
  • mspawns.sethub - Let player set hub.
  • mspawns.hub - Let player teleport to hub.
  • mspawns.delalias - Let player delete alias.
  • mspawns.setalias - Let player set alias.
  • mspawns.delspawn - Let player delete world spawn.
  • mspawns.setspawn - Let player set world spawn.
  • mspawns.spawn - Let player teleport to world spawn.