generated from flytegg/mcw-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
21 changed files
with
548 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package gg.flyte.event.game | ||
|
||
enum class TeamType { | ||
|
||
RED, | ||
BLUE, | ||
YELLOW, | ||
GREEN | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package gg.flyte.event.game.main | ||
|
||
import gg.flyte.event.game.GameType | ||
import gg.flyte.event.game.TeamType | ||
import org.bukkit.entity.Player | ||
|
||
abstract class TeamGame(type: GameType) : MainGame(type) { | ||
|
||
lateinit var teams: MutableMap<TeamType, MutableList<Player>> | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/main/kotlin/gg/flyte/event/game/main/type/PresentSnatchGame.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package gg.flyte.event.game.main.type | ||
|
||
import gg.flyte.event.game.GameType | ||
import gg.flyte.event.game.main.TeamGame | ||
import org.bukkit.entity.Player | ||
|
||
class PresentSnatchGame : TeamGame(GameType.PRESENT_SNATCH) { | ||
|
||
override fun events() { | ||
// right click presents | ||
// disable damage of presents if theyre entities | ||
// | ||
} | ||
|
||
override fun start() { | ||
// spawn presents at mid/around the map | ||
// start timer | ||
} | ||
|
||
override fun stop() { | ||
// remove all presents if theyre entities | ||
// remeber to use MainGameEngine.stop() when stopping (cases: timer ends, too many players leave) | ||
} | ||
|
||
override fun onPlayerJoin(player: Player) { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun onPlayerQuit(player: Player) { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
} |
Oops, something went wrong.