Removed Minigames mechanic and spent hours to push compiled JARs

This commit is contained in:
Norbi Peti 2016-09-10 00:28:36 +02:00
parent 00e336c4b2
commit 8339a209f8
4 changed files with 15 additions and 81 deletions

1
Mvn.txt Normal file
View file

@ -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

16
pom.xml
View file

@ -14,6 +14,7 @@
</excludes>
</resource>
</resources>
<finalName>ButtonChat</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
@ -74,6 +75,7 @@
</includes>
<repositoryName>mvn-repo</repositoryName> <!-- github repo name -->
<repositoryOwner>TBMCPlugins</repositoryOwner> <!-- github username -->
<!-- <path></path> -->
</configuration>
<executions>
<!-- run site-maven-plugin's 'site' target as part of the build's normal
@ -102,6 +104,16 @@
<version>0.9.10</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.9.2-R0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.9.2-R0.1-SNAPSHOT</version>
</dependency>
</dependencies>
<artifactId>ButtonChat</artifactId>
<organization>
@ -112,11 +124,11 @@
<repository>
<id>internal.repo</id>
<name>Temporary Staging Repository</name>
<url>file://${project.build.directory}/mvn-repo</url>
<url>file://${project.build.directory}/mvn-repo/${project.name}</url>
</repository>
</distributionManagement>
<properties>
<!-- github server corresponds to entry in ~/.m2/settings.xml -->
<github.global.server>github</github.global.server>
<github.global.server>githubo</github.global.server>
</properties>
</project>

View file

@ -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<MinigamePlayer> arg1,
List<MinigamePlayer> 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<MinigameType> validTypes() {
return EnumSet.of(MinigameType.MULTIPLAYER);
}
@EventHandler
private void minigameStart(StartMinigameEvent event) {
if (event.getMinigame().getMechanicName().equals(getMechanic())) {
final List<MinigamePlayer> players = event.getPlayers();
// final Minigame minigame = event.getMinigame();
for (MinigamePlayer player : players) {
player.setCanFly(true);
player.setAllowTeleport(true);
}
}
}
}

View file

@ -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();