-
-
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: port 0.2.31 and 0.2.32 changes and fixes
5fc4ffb - fix: fix wrong timezone configuration when connecting to database by making it configurable 8477933 - feat: go to snapshot, BedWarsGameEnabledEvent, BedWarsGameDisabledEvent
- Loading branch information
Showing
8 changed files
with
141 additions
and
1 deletion.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
api/src/main/java/org/screamingsandals/bedwars/api/events/GameDisabledEvent.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,35 @@ | ||
/* | ||
* 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.jetbrains.annotations.ApiStatus; | ||
import org.screamingsandals.bedwars.api.BedwarsAPI; | ||
import org.screamingsandals.bedwars.api.game.Game; | ||
|
||
import java.util.function.Consumer; | ||
|
||
@ApiStatus.NonExtendable | ||
public interface GameDisabledEvent { | ||
Game getGame(); | ||
|
||
static void handle(Object plugin, Consumer<GameDisabledEvent> consumer) { | ||
BedwarsAPI.getInstance().getEventUtils().handle(plugin, GameDisabledEvent.class, consumer); | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
api/src/main/java/org/screamingsandals/bedwars/api/events/GameEnabledEvent.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,35 @@ | ||
/* | ||
* 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.jetbrains.annotations.ApiStatus; | ||
import org.screamingsandals.bedwars.api.BedwarsAPI; | ||
import org.screamingsandals.bedwars.api.game.Game; | ||
|
||
import java.util.function.Consumer; | ||
|
||
@ApiStatus.NonExtendable | ||
public interface GameEnabledEvent { | ||
Game getGame(); | ||
|
||
static void handle(Object plugin, Consumer<GameEnabledEvent> consumer) { | ||
BedwarsAPI.getInstance().getEventUtils().handle(plugin, GameEnabledEvent.class, consumer); | ||
} | ||
} |
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
30 changes: 30 additions & 0 deletions
30
plugin/common/src/main/java/org/screamingsandals/bedwars/events/GameDisabledEventImpl.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,30 @@ | ||
/* | ||
* 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.events; | ||
|
||
import lombok.Data; | ||
import org.screamingsandals.bedwars.api.events.GameDisabledEvent; | ||
import org.screamingsandals.bedwars.game.GameImpl; | ||
import org.screamingsandals.lib.event.Event; | ||
|
||
@Data | ||
public class GameDisabledEventImpl implements GameDisabledEvent, Event { | ||
private final GameImpl game; | ||
} |
30 changes: 30 additions & 0 deletions
30
plugin/common/src/main/java/org/screamingsandals/bedwars/events/GameEnabledEventImpl.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,30 @@ | ||
/* | ||
* 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.events; | ||
|
||
import lombok.Data; | ||
import org.screamingsandals.bedwars.api.events.GameEnabledEvent; | ||
import org.screamingsandals.bedwars.game.GameImpl; | ||
import org.screamingsandals.lib.event.Event; | ||
|
||
@Data | ||
public class GameEnabledEventImpl implements GameEnabledEvent, Event { | ||
private final GameImpl game; | ||
} |
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