Added game mechanic for 200 days build
This commit is contained in:
parent
a25a731e4d
commit
14fbdaef55
7 changed files with 66 additions and 0 deletions
Binary file not shown.
|
@ -0,0 +1,62 @@
|
||||||
|
package tk.sznp.thebuttonautoflair;
|
||||||
|
|
||||||
|
import java.util.EnumSet;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.bukkit.event.HandlerList;
|
||||||
|
|
||||||
|
import au.com.mineauz.minigames.MinigamePlayer;
|
||||||
|
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) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void quitMinigame(Minigame mg, MinigamePlayer mp, boolean forced) {
|
||||||
|
mg.getBlockRecorder().clearRestoreData();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void startMinigame(Minigame mg, MinigamePlayer mp) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void stopMinigame(Minigame arg0, MinigamePlayer arg1) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public EnumSet<MinigameType> validTypes() {
|
||||||
|
return EnumSet.of(MinigameType.MULTIPLAYER);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -18,6 +18,8 @@ import org.htmlcleaner.TagNode;
|
||||||
import org.json.JSONArray;
|
import org.json.JSONArray;
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
|
|
||||||
|
import au.com.mineauz.minigames.mechanics.GameMechanics;
|
||||||
|
|
||||||
import com.palmergames.bukkit.towny.Towny;
|
import com.palmergames.bukkit.towny.Towny;
|
||||||
import com.palmergames.bukkit.towny.object.Nation;
|
import com.palmergames.bukkit.towny.object.Nation;
|
||||||
import com.palmergames.bukkit.towny.object.Town;
|
import com.palmergames.bukkit.towny.object.Town;
|
||||||
|
@ -112,6 +114,8 @@ 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() {
|
||||||
ThreadMethod();
|
ThreadMethod();
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue