Removed Minigames mechanic and spent hours to push compiled JARs
This commit is contained in:
parent
00e336c4b2
commit
8339a209f8
1
Mvn.txt
Normal file
1
Mvn.txt
Normal 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
16
pom.xml
|
@ -14,6 +14,7 @@
|
||||||
</excludes>
|
</excludes>
|
||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
|
<finalName>ButtonChat</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
@ -74,6 +75,7 @@
|
||||||
</includes>
|
</includes>
|
||||||
<repositoryName>mvn-repo</repositoryName> <!-- github repo name -->
|
<repositoryName>mvn-repo</repositoryName> <!-- github repo name -->
|
||||||
<repositoryOwner>TBMCPlugins</repositoryOwner> <!-- github username -->
|
<repositoryOwner>TBMCPlugins</repositoryOwner> <!-- github username -->
|
||||||
|
<!-- <path></path> -->
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<!-- run site-maven-plugin's 'site' target as part of the build's normal
|
<!-- run site-maven-plugin's 'site' target as part of the build's normal
|
||||||
|
@ -102,6 +104,16 @@
|
||||||
<version>0.9.10</version>
|
<version>0.9.10</version>
|
||||||
<scope>runtime</scope>
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</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>
|
</dependencies>
|
||||||
<artifactId>ButtonChat</artifactId>
|
<artifactId>ButtonChat</artifactId>
|
||||||
<organization>
|
<organization>
|
||||||
|
@ -112,11 +124,11 @@
|
||||||
<repository>
|
<repository>
|
||||||
<id>internal.repo</id>
|
<id>internal.repo</id>
|
||||||
<name>Temporary Staging Repository</name>
|
<name>Temporary Staging Repository</name>
|
||||||
<url>file://${project.build.directory}/mvn-repo</url>
|
<url>file://${project.build.directory}/mvn-repo/${project.name}</url>
|
||||||
</repository>
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
<properties>
|
<properties>
|
||||||
<!-- github server corresponds to entry in ~/.m2/settings.xml -->
|
<!-- github server corresponds to entry in ~/.m2/settings.xml -->
|
||||||
<github.global.server>github</github.global.server>
|
<github.global.server>githubo</github.global.server>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -115,8 +115,6 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
|
||||||
setupEconomy();
|
setupEconomy();
|
||||||
setupPermissions();
|
setupPermissions();
|
||||||
|
|
||||||
GameMechanics.addGameMechanic(new CreativeGlobalMechanic());
|
|
||||||
|
|
||||||
Runnable r = new Runnable() {
|
Runnable r = new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
FlairGetterThreadMethod();
|
FlairGetterThreadMethod();
|
||||||
|
|
Loading…
Reference in a new issue