-
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: go to snapshot, BedWarsGameEnabledEvent, BedWarsGameDisabledEvent
- Loading branch information
Showing
4 changed files
with
115 additions
and
1 deletion.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
api/src/main/java/org/screamingsandals/bedwars/api/events/BedWarsGameDisabledEvent.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,56 @@ | ||
/* | ||
* Copyright (C) 2023 ScreamingSandals | ||
* | ||
* This file is part of Screaming BedWars. | ||
* | ||
* Screaming BedWars is free software: you can redistribute it and/or modify it | ||
* under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Screaming BedWars is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with Screaming BedWars. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package org.screamingsandals.bedwars.api.events; | ||
|
||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
import org.screamingsandals.bedwars.api.game.Game; | ||
|
||
/** | ||
* @author Bedwars Team | ||
*/ | ||
public class BedWarsGameDisabledEvent extends Event { | ||
private static final HandlerList handlers = new HandlerList(); | ||
private Game game; | ||
|
||
/** | ||
* @param game | ||
*/ | ||
public BedWarsGameDisabledEvent(Game game) { | ||
this.game = game; | ||
} | ||
|
||
@Override | ||
public HandlerList getHandlers() { | ||
return BedWarsGameDisabledEvent.handlers; | ||
} | ||
|
||
/** | ||
* @return game | ||
*/ | ||
public Game getGame() { | ||
return this.game; | ||
} | ||
|
||
public static HandlerList getHandlerList() { | ||
return BedWarsGameDisabledEvent.handlers; | ||
} | ||
|
||
} |
56 changes: 56 additions & 0 deletions
56
api/src/main/java/org/screamingsandals/bedwars/api/events/BedWarsGameEnabledEvent.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,56 @@ | ||
/* | ||
* Copyright (C) 2023 ScreamingSandals | ||
* | ||
* This file is part of Screaming BedWars. | ||
* | ||
* Screaming BedWars is free software: you can redistribute it and/or modify it | ||
* under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Screaming BedWars is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with Screaming BedWars. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package org.screamingsandals.bedwars.api.events; | ||
|
||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
import org.screamingsandals.bedwars.api.game.Game; | ||
|
||
/** | ||
* @author Bedwars Team | ||
*/ | ||
public class BedWarsGameEnabledEvent extends Event { | ||
private static final HandlerList handlers = new HandlerList(); | ||
private Game game; | ||
|
||
/** | ||
* @param game | ||
*/ | ||
public BedWarsGameEnabledEvent(Game game) { | ||
this.game = game; | ||
} | ||
|
||
@Override | ||
public HandlerList getHandlers() { | ||
return BedWarsGameEnabledEvent.handlers; | ||
} | ||
|
||
/** | ||
* @return game | ||
*/ | ||
public Game getGame() { | ||
return this.game; | ||
} | ||
|
||
public static HandlerList getHandlerList() { | ||
return BedWarsGameEnabledEvent.handlers; | ||
} | ||
|
||
} |
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