https://github.com/supermarcus/fastlevelswitch
A third PocketMine-MP library that teleport player safely (Fix player in the stone)
https://github.com/supermarcus/fastlevelswitch
Last synced: 11 months ago
JSON representation
A third PocketMine-MP library that teleport player safely (Fix player in the stone)
- Host: GitHub
- URL: https://github.com/supermarcus/fastlevelswitch
- Owner: SuperMarcus
- License: lgpl-3.0
- Created: 2015-03-06T14:48:34.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-06-25T04:07:34.000Z (almost 8 years ago)
- Last Synced: 2025-02-06T02:07:36.055Z (over 1 year ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastLevelSwitch
A third PocketMine-MP library that teleport player safely (Fix player in the stone)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
By default, you should use the static methods in class `\supermarcus\fastlevelswitch\FastLevelSwitch`
### Useful method
`FastLevelSwitch::teleport(Player $player, $position[, $delay = 2 * 20])`
The default method to teleport a player with chunk pre-loading
`FastLevelSwitch::preLoadChunks(Player $player[, Vector3 $pos = null])`
Pre-load a selection chunk for a player
`FastLevelSwitch::cacheChunk($x, $z, Level $level)`
Cache a specific chunk of a level at ($x, $y)