Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Commit

Permalink
Updated GitHub repository. Fixed NPE when using update system below 1…
Browse files Browse the repository at this point in the history
….13. Removed deprecated `org.bukkit.util.Consumer`. Changed plugin version to `2.6.1`.
  • Loading branch information
BuildTools committed Oct 12, 2023
1 parent 5d02796 commit 3d36601
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>de.sportkanone123</groupId>
<artifactId>ClientDetector</artifactId>
<version>2.6.0</version>
<version>2.6.1</version>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ public void onEnable() {
getCommand("forge").setExecutor(new Command());
getCommand("mods").setExecutor(new Command());

Bukkit.getPluginManager().registerEvents(new PlayerListener(), this);
Bukkit.getPluginManager().registerEvents(new ClientControl(), this);
this.getServer().getPluginManager().registerEvents(new PlayerListener(), this);
this.getServer().getPluginManager().registerEvents(new ClientControl(), this);
this.getServer().getPluginManager().registerEvents(new JoinEvent(), this);

if(ConfigManager.getConfig("config").getBoolean("hackdetector.chatexploit.enableChatExploit") || ConfigManager.getConfig("config").getBoolean("hackdetector.antifastmath.enableAntiFastMath"))
Expand Down Expand Up @@ -192,7 +192,6 @@ public void onEnable() {
console.sendMessage(ColorUtils.translateColorCodes(ConfigManager.getConfig("message").getString("update-available.3")));
}
});

}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
import org.bukkit.Bukkit;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.util.Consumer;

import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.Scanner;
import java.util.function.Consumer;

public class UpdateChecker {

Expand Down

0 comments on commit 3d36601

Please sign in to comment.