diff --git a/Mvn.txt b/Mvn.txt new file mode 100644 index 0000000..8e9f41f --- /dev/null +++ b/Mvn.txt @@ -0,0 +1 @@ +apache-maven-3.2.5/bin/mvn install:install-file -Dfile=Towny.jar -DgroupId=com.palmergames -DartifactId=Towny -Dversion=0.90.0.0 -Dpackaging=jar diff --git a/pom.xml b/pom.xml index 3314240..426aa85 100644 --- a/pom.xml +++ b/pom.xml @@ -14,6 +14,7 @@ + ButtonChat maven-compiler-plugin @@ -74,6 +75,7 @@ mvn-repo TBMCPlugins + - github + githubo \ No newline at end of file diff --git a/src/buttondevteam/chat/CreativeGlobalMechanic.java b/src/buttondevteam/chat/CreativeGlobalMechanic.java deleted file mode 100644 index 34661a5..0000000 --- a/src/buttondevteam/chat/CreativeGlobalMechanic.java +++ /dev/null @@ -1,77 +0,0 @@ -package buttondevteam.chat; - -import java.util.EnumSet; -import java.util.List; - -import org.bukkit.event.EventHandler; - -import au.com.mineauz.minigames.MinigamePlayer; -import au.com.mineauz.minigames.events.StartMinigameEvent; -import au.com.mineauz.minigames.gametypes.MinigameType; -import au.com.mineauz.minigames.mechanics.GameMechanicBase; -import au.com.mineauz.minigames.minigame.Minigame; -import au.com.mineauz.minigames.minigame.modules.MinigameModule; - -public class CreativeGlobalMechanic extends GameMechanicBase { - - @Override - public boolean checkCanStart(Minigame arg0, MinigamePlayer arg1) { - return true; - } - - @Override - public MinigameModule displaySettings(Minigame arg0) { - return null; - } - - @Override - public void endMinigame(Minigame arg0, List arg1, - List arg2) { - - } - - @Override - public String getMechanic() { - return "creativeglobal"; - } - - @Override - public void joinMinigame(Minigame mg, MinigamePlayer mp) { - mp.setCanFly(true); - mp.setAllowTeleport(true); - } - - @Override - public void quitMinigame(Minigame mg, MinigamePlayer mp, boolean forced) { - mg.getBlockRecorder().clearRestoreData(); - - } - - @Override - public void startMinigame(Minigame mg, MinigamePlayer mp) { - mp.setAllowTeleport(true); - } - - @Override - public void stopMinigame(Minigame arg0, MinigamePlayer arg1) { - - } - - @Override - public EnumSet validTypes() { - return EnumSet.of(MinigameType.MULTIPLAYER); - } - - @EventHandler - private void minigameStart(StartMinigameEvent event) { - if (event.getMinigame().getMechanicName().equals(getMechanic())) { - final List players = event.getPlayers(); - // final Minigame minigame = event.getMinigame(); - for (MinigamePlayer player : players) { - player.setCanFly(true); - player.setAllowTeleport(true); - } - } - } - -} diff --git a/src/buttondevteam/chat/PluginMain.java b/src/buttondevteam/chat/PluginMain.java index 6caf591..6c2ee7f 100644 --- a/src/buttondevteam/chat/PluginMain.java +++ b/src/buttondevteam/chat/PluginMain.java @@ -115,8 +115,6 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15. setupEconomy(); setupPermissions(); - GameMechanics.addGameMechanic(new CreativeGlobalMechanic()); - Runnable r = new Runnable() { public void run() { FlairGetterThreadMethod();