-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a96443d
commit a173577
Showing
7 changed files
with
49 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
pluginGroup=io.github.m0pt0pmatt.survivalgames | ||
pluginId=survivalgames | ||
pluginVersion=1.1.7 | ||
pluginVersion=1.1.8 |
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
12 changes: 12 additions & 0 deletions
12
src/main/java/io/github/m0pt0pmatt/survivalgames/event/GameDeathmatchEvent.java
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,12 @@ | ||
package io.github.m0pt0pmatt.survivalgames.event; | ||
|
||
import io.github.m0pt0pmatt.survivalgames.SurvivalGamesPlugin; | ||
import io.github.m0pt0pmatt.survivalgames.game.SurvivalGame; | ||
import org.spongepowered.api.event.cause.Cause; | ||
import org.spongepowered.api.event.cause.EventContext; | ||
|
||
public class GameDeathmatchEvent extends SurvivalGameEvent { | ||
public GameDeathmatchEvent(SurvivalGame survivalGame) { | ||
super(Cause.of(EventContext.empty(), SurvivalGamesPlugin.PLUGIN), survivalGame); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/io/github/m0pt0pmatt/survivalgames/event/GameReadyEvent.java
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 io.github.m0pt0pmatt.survivalgames.event; | ||
|
||
import io.github.m0pt0pmatt.survivalgames.game.SurvivalGame; | ||
import io.github.m0pt0pmatt.survivalgames.game.SurvivalGameState; | ||
|
||
public class GameReadyEvent extends GameStateChangedEvent { | ||
public GameReadyEvent(SurvivalGame survivalGame,SurvivalGameState previousState) { | ||
super(survivalGame, previousState, SurvivalGameState.READY); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/io/github/m0pt0pmatt/survivalgames/event/GameStartedEvent.java
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 io.github.m0pt0pmatt.survivalgames.event; | ||
|
||
import io.github.m0pt0pmatt.survivalgames.game.SurvivalGame; | ||
import io.github.m0pt0pmatt.survivalgames.game.SurvivalGameState; | ||
|
||
public class GameStartedEvent extends GameStateChangedEvent { | ||
public GameStartedEvent(SurvivalGame survivalGame, SurvivalGameState previousState) { | ||
super(survivalGame, previousState, SurvivalGameState.RUNNING); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/io/github/m0pt0pmatt/survivalgames/event/GameStoppedEvent.java
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 io.github.m0pt0pmatt.survivalgames.event; | ||
|
||
import io.github.m0pt0pmatt.survivalgames.game.SurvivalGame; | ||
import io.github.m0pt0pmatt.survivalgames.game.SurvivalGameState; | ||
|
||
public class GameStoppedEvent extends GameStateChangedEvent { | ||
public GameStoppedEvent(SurvivalGame survivalGame, SurvivalGameState previousState) { | ||
super(survivalGame, previousState, SurvivalGameState.STOPPED); | ||
} | ||
} |
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