WarpsAPI

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

WarpsAPI

Server Owners:

This plugin does nothing on its own. It is simply an API for other plugins to implement with.

Developers

Simply add WarpsAPI.jar to your project build path.

This plugin makes use of reflection and therefore "shouldn't" break on craftbukkit updates.

Examples

This API allows you to write your own Warp plugin.

It is simple to install:

1. Open your programming program.

2. Go to your plugin and do right-click.

3. Click on "properties".

4. Click on "Java Build Path".

5. Click "add external JARs".

6. Search the WarpsAPI.

Now it is ready to programming!

So you can use it:

1. Add this to your code:

1

WarpsAPImain warp = WarpsAPI.WarpsAPImain.getPlugin(WarpsAPImain.class);

2. Now you can use your shortcut like this.

2

warpList(messagePlayer);

As example:

warpList(p);

This lists all the warps from the warps.yml on (WarpsAPI folder).

---------

createWarp(name, loc, createMessage, messagePlayer);

As example:

createWarp("lobby", p.getLocation(), "Warp was created ", p);

This creates a warp with the specified detail.

---------

removeWarp(name, errorMessage, removeMessage, messagePlayer);

As example:

removeWarp("lobby", "This Warp does not exist", "Warps was removed", p);

This removes a warp with the specified detail.

---------

teleportToWarp(name, player, teleportMessage, errorMessage);

As example:

teleportToWarp("lobby", p, "You have been teleported to a Warp", "This Warp does not exist");

This will teleport you to the specified datail.

-------------------------

Sorry for my bad english very sorry.

With best regards

nflug

-------------------------


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    86986
  • Created
    Nov 25, 2014
  • Last Released File
    Nov 25, 2014
  • Total Downloads
    768
  • License

Categories

Members

Recent Files

Bukkit