Skip to content

Commit c1a03a6

Browse files
authored
3.0.7 Release
2 parents 16775bd + 92ab457 commit c1a03a6

131 files changed

Lines changed: 702 additions & 468 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
# Maintenance Changelog
22
This file contains update logs for this project. The top may contain a `Unreleased` section, gathering update logs for a future update during development.
33

4+
---
5+
## 3.0.7 - August 17th 2021
6+
### Changed
7+
* Bungee/Velocity: `/maintenance add <name>` now works for offline players as well
8+
* Added config options `commands-on-maintenance-enable` and `commands-on-maintenance-disable` to define commands to be executed after maintenance has been toggled
9+
* Added config option `enable-pingmessages` to can change whether a custom maintenance motd should be displayed during maintenance
10+
* Added language fields `scheduletimerBroadcast` and `singleScheduletimerBroadcast` with the variables `%SERVER%`, `%TIME%`, and `%DURATION%` instead of using the normal starttimer broadcasts
11+
### Fixed
12+
* Fixed SQL loading issues on some platforms
13+
* Fixed missing language key warning for the debug command
14+
* Velocity: Fixed the update message
415
---
516
## 3.0.6 - February 17th 2021
617
### Changed

.github/workflows/maven.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,25 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v2.3.4
1111

12-
- uses: actions/cache@v2.1.1
12+
- uses: actions/cache@v2.1.6
1313
with:
1414
path: ~/.m2/repository
1515
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
1616
restore-keys: ${{ runner.os }}-maven-
1717

18-
- name: Set up JDK 1.8
19-
uses: actions/setup-java@v1
18+
- name: Set up JDK 11
19+
uses: actions/setup-java@v2.1.0
2020
with:
21-
java-version: 1.8
21+
java-version: 11
22+
distribution: 'adopt'
2223

2324
- name: Build with Maven
2425
run: mvn -B package --file pom.xml
2526

2627
- name: Upload a Build Artifact
27-
uses: actions/upload-artifact@v2.1.4
28+
uses: actions/upload-artifact@v2.2.4
2829
with:
2930
name: MaintenanceFiles
3031
path: |

LICENSE.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
GNU GENERAL PUBLIC LICENSE
1+
GNU GENERAL PUBLIC LICENSE
22
Version 3, 29 June 2007
33

4-
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
4+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
55
Everyone is permitted to copy and distribute verbatim copies
66
of this license document, but changing it is not allowed.
77

@@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
645645
GNU General Public License for more details.
646646

647647
You should have received a copy of the GNU General Public License
648-
along with this program. If not, see <http://www.gnu.org/licenses/>.
648+
along with this program. If not, see <https://www.gnu.org/licenses/>.
649649

650650
Also add information on how to contact you by electronic and paper mail.
651651

@@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
664664
You should also get your employer (if you work as a programmer) or school,
665665
if any, to sign a "copyright disclaimer" for the program, if necessary.
666666
For more information on this, and how to apply and follow the GNU GPL, see
667-
<http://www.gnu.org/licenses/>.
667+
<https://www.gnu.org/licenses/>.
668668

669669
The GNU General Public License does not permit incorporating your program
670670
into proprietary programs. If your program is a subroutine library, you
671671
may consider it more useful to permit linking proprietary applications with
672672
the library. If this is what you want to do, use the GNU Lesser General
673673
Public License instead of this License. But first, please read
674-
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
674+
<https://www.gnu.org/licenses/why-not-lgpl.html>.

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Maintenance
2-
[![Version](https://img.shields.io/github/release/KennyTV/Maintenance.svg)](https://github.com/KennyTV/Maintenance/releases)
3-
![Build Status](https://github.com/KennyTV/Maintenance/workflows/Build/badge.svg)
4-
[![GH Downloads](https://img.shields.io/github/downloads/KennyTV/Maintenance/total)](https://github.com/KennyTV/Maintenance/releases)
2+
[![Version](https://img.shields.io/github/release/kennytv/Maintenance.svg)](https://github.com/kennytv/Maintenance/releases)
3+
![Build Status](https://github.com/kennytv/Maintenance/workflows/Build/badge.svg)
4+
[![GH Downloads](https://img.shields.io/github/downloads/kennytv/Maintenance/total)](https://github.com/kennytv/Maintenance/releases)
55
[![Discord](https://img.shields.io/discord/489135856284729384.svg?label=Discord&logo=discord&logoColor=fff)](https://discord.gg/vGCUzHq)
6-
[![Twitter](https://img.shields.io/twitter/follow/KennyTVN.svg?label=Twitter)](https://twitter.com/KennyTVN)
7-
Maintenance is probably the most customizable free maintenance plugin for your Minecraft server you can find. It runs on Spigot, BungeeCord, Sponge, as well as Velocity.
6+
[![Twitter](https://img.shields.io/twitter/follow/kennytvn.svg?label=Twitter)](https://twitter.com/kennytvn)
7+
8+
Maintenance is the most customizable free maintenance plugin for your Minecraft server you can find. It runs on Spigot, BungeeCord, Sponge, as well as Velocity.
89

910
Its features include:
1011
* A custom motd as well as server icon, that will be shown during maintenance
@@ -15,15 +16,15 @@ Its features include:
1516
* Features specifically for Bungee/Velocity
1617
* Only want to enable maintenance on a single server? You can also do so by using the `/maintenance <on/off> <servername>` command
1718
* Link multiple proxy instances through a MySQL database connection, so you don't have to change maintenance on each proxy by hand
18-
* Use PlaceholderAPI placeholders with the [**MaintenanceAddon**](https://github.com/KennyTV/Maintenance/wiki/MaintenanceAddon) (only for Bungee)
19+
* Use PlaceholderAPI placeholders with the [**MaintenanceAddon**](https://github.com/kennytv/Maintenance/wiki/MaintenanceAddon) (only for Bungee)
1920

2021
A full list of commands, permissions and configuration options can be found in the wiki listed below.
21-
* [Wiki](https://github.com/KennyTV/Maintenance/wiki) (configuration, permissions, API usage)
22-
* [Downloads](https://github.com/KennyTV/Maintenance/releases) (GitHub)
23-
* [Changelogs](https://github.com/KennyTV/Maintenance/blob/master/.github/CHANGELOG.md)
24-
* [Issue tracker/bug reports](https://github.com/KennyTV/Maintenance/issues)
22+
* [Wiki](https://github.com/kennytv/Maintenance/wiki) (configuration, permissions, API usage)
23+
* [Downloads](https://github.com/kennytv/Maintenance/releases) (GitHub)
24+
* [Changelogs](https://github.com/kennytv/Maintenance/blob/master/.github/CHANGELOG.md)
25+
* [Issue tracker/bug reports](https://github.com/kennytv/Maintenance/issues)
2526
* [Discord](https://discord.gg/vGCUzHq)
26-
* [PlaceholderAPI addon](https://github.com/KennyTV/Maintenance/wiki/MaintenanceAddon)
27+
* [PlaceholderAPI addon](https://github.com/kennytv/Maintenance/wiki/MaintenanceAddon)
2728

2829
Other forum threads
2930
* [Spigot forums](https://www.spigotmc.org/resources/maintenance.40699/)
@@ -33,5 +34,5 @@ Other forum threads
3334
## Compiling
3435
To create a working jar yourself, simply clone the project and compile it with maven (by using `mvn clean package` in your IDE console).
3536

36-
## Licence
37-
When modifying the project's code, do that on a public repository while also keeping it under the same license (see [GNU General Public License](http://www.gnu.org/licenses/gpl-3.0)).
37+
## License
38+
This project is licensed under the [GNU General Public License v3](LICENSE.txt).

maintenance-api/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>eu.kennytv.maintenance</groupId>
88
<artifactId>maintenance-parent</artifactId>
9-
<version>3.0.6</version>
9+
<version>3.0.7</version>
1010
</parent>
1111

1212
<artifactId>maintenance-api</artifactId>
@@ -16,13 +16,13 @@
1616
<dependency>
1717
<groupId>net.md-5</groupId>
1818
<artifactId>bungeecord-api</artifactId>
19-
<version>1.15-SNAPSHOT</version>
19+
<version>1.17-R0.1-SNAPSHOT</version>
2020
<scope>provided</scope>
2121
</dependency>
2222
<dependency>
2323
<groupId>org.spigotmc</groupId>
2424
<artifactId>spigot-api</artifactId>
25-
<version>1.15.2-R0.1-SNAPSHOT</version>
25+
<version>1.16.5-R0.1-SNAPSHOT</version>
2626
<scope>provided</scope>
2727
</dependency>
2828
<dependency>

maintenance-api/src/main/java/eu/kennytv/maintenance/api/IMaintenance.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Maintenance - https://git.io/maintenancemode
3-
* Copyright (C) 2018-2021 KennyTV (https://github.com/KennyTV)
2+
* This file is part of Maintenance - https://github.com/kennytv/Maintenance
3+
* Copyright (C) 2018-2021 kennytv (https://github.com/kennytv)
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -15,13 +15,12 @@
1515
* You should have received a copy of the GNU General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
18-
1918
package eu.kennytv.maintenance.api;
2019

2120
import eu.kennytv.maintenance.api.event.manager.IEventManager;
2221

2322
/**
24-
* @author KennyTV
23+
* @author kennytv
2524
* @since 2.1
2625
*/
2726
public interface IMaintenance {

maintenance-api/src/main/java/eu/kennytv/maintenance/api/IMaintenanceBase.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Maintenance - https://git.io/maintenancemode
3-
* Copyright (C) 2018-2021 KennyTV (https://github.com/KennyTV)
2+
* This file is part of Maintenance - https://github.com/kennytv/Maintenance
3+
* Copyright (C) 2018-2021 kennytv (https://github.com/kennytv)
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -15,11 +15,10 @@
1515
* You should have received a copy of the GNU General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
18-
1918
package eu.kennytv.maintenance.api;
2019

2120
/**
22-
* @author KennyTV
21+
* @author kennytv
2322
* @since 2.2.2
2423
*/
2524
public interface IMaintenanceBase {

maintenance-api/src/main/java/eu/kennytv/maintenance/api/ISettings.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Maintenance - https://git.io/maintenancemode
3-
* Copyright (C) 2018-2021 KennyTV (https://github.com/KennyTV)
2+
* This file is part of Maintenance - https://github.com/kennytv/Maintenance
3+
* Copyright (C) 2018-2021 kennytv (https://github.com/kennytv)
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -15,14 +15,13 @@
1515
* You should have received a copy of the GNU General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
18-
1918
package eu.kennytv.maintenance.api;
2019

2120
import java.util.Map;
2221
import java.util.UUID;
2322

2423
/**
25-
* @author KennyTV
24+
* @author kennytv
2625
* @since 2.1
2726
*/
2827
public interface ISettings {
@@ -34,6 +33,11 @@ public interface ISettings {
3433
*/
3534
boolean isMaintenance();
3635

36+
/**
37+
* @return true if custom ping messages during maintenance should be used
38+
*/
39+
boolean isEnablePingMessages();
40+
3741
/**
3842
* @return value of the 'send-join-notification' config field
3943
*/

maintenance-api/src/main/java/eu/kennytv/maintenance/api/bungee/MaintenanceBungeeAPI.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Maintenance - https://git.io/maintenancemode
3-
* Copyright (C) 2018-2021 KennyTV (https://github.com/KennyTV)
2+
* This file is part of Maintenance - https://github.com/kennytv/Maintenance
3+
* Copyright (C) 2018-2021 kennytv (https://github.com/kennytv)
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -15,7 +15,6 @@
1515
* You should have received a copy of the GNU General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
18-
1918
package eu.kennytv.maintenance.api.bungee;
2019

2120
import com.google.common.base.Preconditions;
@@ -30,7 +29,7 @@
3029
* Only access this class if you're running the plugin on a BungeeCord server!
3130
* </p>
3231
*
33-
* @author KennyTV
32+
* @author kennytv
3433
* @since 2.5
3534
*/
3635
public final class MaintenanceBungeeAPI {

maintenance-api/src/main/java/eu/kennytv/maintenance/api/event/MaintenanceChangedEvent.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Maintenance - https://git.io/maintenancemode
3-
* Copyright (C) 2018-2021 KennyTV (https://github.com/KennyTV)
2+
* This file is part of Maintenance - https://github.com/kennytv/Maintenance
3+
* Copyright (C) 2018-2021 kennytv (https://github.com/kennytv)
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -15,15 +15,14 @@
1515
* You should have received a copy of the GNU General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
18-
1918
package eu.kennytv.maintenance.api.event;
2019

2120
import eu.kennytv.maintenance.api.event.manager.MaintenanceEvent;
2221

2322
/**
2423
* Notification event fired when maintenance mode has been changed.
2524
*
26-
* @author KennyTV
25+
* @author kennytv
2726
* @since 3.0.1
2827
*/
2928
public final class MaintenanceChangedEvent implements MaintenanceEvent {

0 commit comments

Comments
 (0)