Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<properties>
<maven.compiler.release>21</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.proc>full</maven.compiler.proc>
<tlibs.version>2.0.0</tlibs.version>
</properties>

Expand Down Expand Up @@ -52,6 +53,12 @@
<version>5.14.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>2.0.17</version>
<scope>test</scope>
</dependency>
</dependencies>

<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public PermCleanerCommand(PermCleaner plugin) {
this.plugin = plugin;
}

// Keep the existing legacy text representation, formatting, and exact-string comparisons.
@SuppressWarnings("deprecation")
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (args.length == 0) {
Expand All @@ -50,6 +52,8 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
return true;
}

// Keep the existing legacy text representation, formatting, and exact-string comparisons.
@SuppressWarnings("deprecation")
private void reload(CommandSender sender) {
plugin.reloadConfig();
plugin.reloadKeepList();
Expand All @@ -58,6 +62,8 @@ private void reload(CommandSender sender) {
+ ChatColor.GREEN + " world " + ChatColor.WHITE + plugin.displayWorld());
}

// Keep the existing legacy text representation, formatting, and exact-string comparisons.
@SuppressWarnings("deprecation")
private void status(CommandSender sender, String[] args) {
Target target = resolveTarget(sender, args);
if (target == null) {
Expand All @@ -78,6 +84,8 @@ private void status(CommandSender sender, String[] args) {
+ ChatColor.GREEN + " gate " + ChatColor.WHITE + (online == null ? "offline" : (worldOk ? "pass" : "fail")));
}

// Keep the existing legacy text representation, formatting, and exact-string comparisons.
@SuppressWarnings("deprecation")
private void inspect(CommandSender sender, String[] args) {
Target target = resolveTarget(sender, args);
if (target == null) {
Expand Down Expand Up @@ -110,6 +118,8 @@ private void inspect(CommandSender sender, String[] args) {
});
}

// Keep the existing legacy text representation, formatting, and exact-string comparisons.
@SuppressWarnings("deprecation")
private void clean(CommandSender sender, String[] args, boolean force) {
Target target = resolveTarget(sender, args);
if (target == null) {
Expand All @@ -136,6 +146,8 @@ private void clean(CommandSender sender, String[] args, boolean force) {
}
}

// Keep the existing legacy text representation, formatting, and exact-string comparisons.
@SuppressWarnings("deprecation")
private Target resolveTarget(CommandSender sender, String[] args) {
if (args.length < 2) {
if (sender instanceof Player player) {
Expand Down