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()
|
public static void setup()
|
||||||
{
|
{
|
||||||
Plugin plug = Bukkit.getServer().getPluginManager().getPlugin("capi");
|
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.log("Integration with the CAPI plugin was successful");
|
||||||
P.p.registerEvent(Event.Type.CUSTOM_EVENT, new PluginCapiListener(P.p), Priority.Normal);
|
P.p.registerEvent(Event.Type.CUSTOM_EVENT, new PluginCapiListener(P.p), Priority.Normal);
|
||||||
|
@ -168,12 +168,12 @@ public class FactionsPlayerListener extends PlayerListener
|
|||||||
@Override
|
@Override
|
||||||
public void onPlayerMove(PlayerMoveEvent event)
|
public void onPlayerMove(PlayerMoveEvent event)
|
||||||
{
|
{
|
||||||
Player player = event.getPlayer();
|
|
||||||
FPlayer me = FPlayers.i.get(player);
|
|
||||||
|
|
||||||
// Did we change block?
|
// Did we change block?
|
||||||
if (event.getFrom().equals(event.getTo())) return;
|
if (event.getFrom().equals(event.getTo())) return;
|
||||||
|
|
||||||
|
Player player = event.getPlayer();
|
||||||
|
FPlayer me = FPlayers.i.get(player);
|
||||||
|
|
||||||
// Did we change coord?
|
// Did we change coord?
|
||||||
FLocation from = me.getLastStoodAt();
|
FLocation from = me.getLastStoodAt();
|
||||||
FLocation to = new FLocation(player.getLocation());
|
FLocation to = new FLocation(player.getLocation());
|
||||||
|
Loading…
Reference in New Issue
Block a user