mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-12-26 02:28:13 +01:00
Performance boost? And fixed capi integration once again.
This commit is contained in:
parent
2c5a8872f2
commit
1e1925b43e
@ -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);
|
||||
|
@ -168,11 +168,11 @@ 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();
|
||||
|
Loading…
Reference in New Issue
Block a user