This commit is contained in:
Olof Larsson 2013-03-12 08:33:20 +01:00
parent 9fe7a9c489
commit 1982709181
6 changed files with 29 additions and 29 deletions

View File

@ -0,0 +1,11 @@
package com.massivecraft.mcore.mixin;
import org.bukkit.event.player.PlayerJoinEvent;
import com.massivecraft.mcore.event.MCorePlayerLeaveEvent;
public interface ActualMixin
{
public boolean isActualJoin(PlayerJoinEvent event);
public boolean isActualLeave(MCorePlayerLeaveEvent event);
}

View File

@ -0,0 +1,6 @@
package com.massivecraft.mcore.mixin;
public abstract class ActualMixinAbstract implements ActualMixin
{
}

View File

@ -4,27 +4,27 @@ import org.bukkit.event.player.PlayerJoinEvent;
import com.massivecraft.mcore.event.MCorePlayerLeaveEvent;
public class ActuallMixinDefault extends ActuallMixinAbstract
public class ActualMixinDefault extends ActualMixinAbstract
{
// -------------------------------------------- //
// INSTANCE & CONSTRUCT
// -------------------------------------------- //
private static ActuallMixinDefault i = new ActuallMixinDefault();
public static ActuallMixinDefault get() { return i; }
private static ActualMixinDefault i = new ActualMixinDefault();
public static ActualMixinDefault get() { return i; }
// -------------------------------------------- //
// OVERRIDE
// -------------------------------------------- //
@Override
public boolean isActuallJoin(PlayerJoinEvent event)
public boolean isActualJoin(PlayerJoinEvent event)
{
return true;
}
@Override
public boolean isActuallLeave(MCorePlayerLeaveEvent event)
public boolean isActualLeave(MCorePlayerLeaveEvent event)
{
return true;
}

View File

@ -1,11 +0,0 @@
package com.massivecraft.mcore.mixin;
import org.bukkit.event.player.PlayerJoinEvent;
import com.massivecraft.mcore.event.MCorePlayerLeaveEvent;
public interface ActuallMixin
{
public boolean isActuallJoin(PlayerJoinEvent event);
public boolean isActuallLeave(MCorePlayerLeaveEvent event);
}

View File

@ -1,6 +0,0 @@
package com.massivecraft.mcore.mixin;
public abstract class ActuallMixinAbstract implements ActuallMixin
{
}

View File

@ -60,9 +60,9 @@ public class Mixin
public static KickMixin getKickMixin() { return kickMixin; }
public static void setKickMixin(KickMixin val) { kickMixin = val; }
private static ActuallMixin actuallMixin = ActuallMixinDefault.get();
public static ActuallMixin getActuallMixin() { return actuallMixin; }
public static void setActuallMixin(ActuallMixin val) { actuallMixin = val; }
private static ActualMixin actualMixin = ActualMixinDefault.get();
public static ActualMixin getActualMixin() { return actualMixin; }
public static void setActualMixin(ActualMixin val) { actualMixin = val; }
// -------------------------------------------- //
// STATIC EXPOSE: WORLD
@ -466,14 +466,14 @@ public class Mixin
// STATIC EXPOSE: ACTUALL
// -------------------------------------------- //
public static boolean isActuallJoin(PlayerJoinEvent event)
public static boolean isActualJoin(PlayerJoinEvent event)
{
return getActuallMixin().isActuallJoin(event);
return getActualMixin().isActualJoin(event);
}
public static boolean isActuallLeave(MCorePlayerLeaveEvent event)
public static boolean isActualLeave(MCorePlayerLeaveEvent event)
{
return getActuallMixin().isActuallLeave(event);
return getActualMixin().isActualLeave(event);
}
}