Introduction:
- This is an API for plugin developers.
- This original name of this plugin is Warps. (Duh)
Commands:
/Warps Help | Receive help message. | ||
/Warps Create <WarpName> | Create a warp. | ||
/Warps SetDest <WarpName> | Set destination of the warp. | ||
/Warps List | List all warps. | ||
/Warps Delete <WarpName> | Delete a warp. |
Permissions:
warps.create | This allows a player to do /Warps Create <WarpName>. | ||
warps.list | This allows player to do /Warps List | ||
warps.delete | This allows a player to do /Warps Delete <WarpName> | ||
warps.update | This allows a player to receive the update notification. (If UpdateCheck is true) |
Configuration:
warps.yml | This contains all the warps and it's data. You don't need to edit this. | ||
settings.properties | All configuration sections in here are explained. This reloads every one second. |
How to use it:
- First, you create a warp: /warp create <WarpName>
- Second, you set the destination, find a location that suites you and type: /warp setdest <WarpName>
- Open Eclipse or whatever program you use to program. These are all the available methods (EXAMPLES):
WarpsAPI.warpPlayer(player, "Test"); | This will warp a player straight away. | ||
WarpsAPI.warpPlayer(player, "Test", 20L); | This will warp a player to destination after 1 second has passed. | ||
WarpsAPI.warpPlayer(player, "Test", Sound.PORTAL_TRAVEL, 1F, 1F); | When a player has been warped it will play a sound with the pitch of 1F & 1F (Adjustable). | ||
WarpsAPI.warpPlayer(player, "Test", 20L, Sound.PORTAL_TRAVEL, 1F, 1F); | I'm sure you know what this does. |
That's it ;)
Suggestions:
Leave suggestions in the comments below!
Bugs:
Please message me any bugs. Privately. Thank you.