legitWarpsAPI

15k Downloads

http://i.imgur.com/BISgntq.png

Introduction:

  • This is an API for plugin developers.
  • This original name of this plugin is Warps. (Duh)

Commands:

/Warps HelpReceive help message.
/Warps Create <WarpName>Create a warp.
/Warps SetDest <WarpName>Set destination of the warp.
/Warps ListList all warps.
/Warps Delete <WarpName>Delete a warp.

Permissions:

warps.createThis allows a player to do /Warps Create <WarpName>.
warps.listThis allows player to do /Warps List
warps.deleteThis allows a player to do /Warps Delete <WarpName>
warps.updateThis allows a player to receive the update notification. (If UpdateCheck is true)

Configuration:

warps.ymlThis contains all the warps and it's data. You don't need to edit this.
settings.propertiesAll 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.