Performance boost? And fixed capi integration once again.

This commit is contained in:
Olof Larsson 2011-12-16 00:19:01 +01:00
parent 2c5a8872f2
commit 1e1925b43e
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ public class CapiFeatures
public static void setup()
{
Plugin plug = Bukkit.getServer().getPluginManager().getPlugin("capi");
if (plug != null && plug.getClass().getName().equals("com.massivecraft.capi.capi"))
if (plug != null && plug.getClass().getName().equals("com.massivecraft.capi.P"))
{
P.p.log("Integration with the CAPI plugin was successful");
P.p.registerEvent(Event.Type.CUSTOM_EVENT, new PluginCapiListener(P.p), Priority.Normal);

View File

@ -168,12 +168,12 @@ public class FactionsPlayerListener extends PlayerListener
@Override
public void onPlayerMove(PlayerMoveEvent event)
{
Player player = event.getPlayer();
FPlayer me = FPlayers.i.get(player);
// Did we change block?
if (event.getFrom().equals(event.getTo())) return;
Player player = event.getPlayer();
FPlayer me = FPlayers.i.get(player);
// Did we change coord?
FLocation from = me.getLastStoodAt();
FLocation to = new FLocation(player.getLocation());