/SimpleHome

Repository for small pmmp plugins

Primary LanguagePHPApache License 2.0Apache-2.0

SimpleHome

The easiest plugin to create and edit virtual homes.

Commands:

  • Sethome Command:
    • Create home
    • permission: sh.cmd.sethome (no-op)
    • usage: /sethome
  • Home Command:
    • Displays list of homes or teleport to home
    • permission: sh.cmd.home (no-op)
    • usage: /home or /home
  • Delhome Command:
    • Remove home
    • permission: sh.cmd.delhome (no-op)
    • usage: /delhome

Permissions:

  • sh.cmd:
    • permission for all commands
    • default: TRUE

API:

  • get SimpleHome instance

$simpleHome = SimpleHome::getInstance();

  • get the player's home

$home = $simpleHome->getPlayerHome(Player $player, string $homeName);

  • teleport player to his home

$home->teleport($player);

  • create new home

$simpleHome->setPlayerHome($player, $newHome = new Home($player, [$x, $y, $z, $levelName], $homeName));

  • delete home

$simpleHome->deleteHome($player, $newHome);

  • get home list

$simpleHome->getHomeList();