Skip to content

Commit

Permalink
[update] added 1.21.4 Support
Browse files Browse the repository at this point in the history
[fix] removed Update Checker
  • Loading branch information
ka0un committed Dec 31, 2024
1 parent 556a9a9 commit 3ddf320
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 62 deletions.
17 changes: 17 additions & 0 deletions .idea/aws.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/material_theme_project_new.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.kasun</groupId>
<artifactId>OPProtector</artifactId>
<version>1.0.4</version>
<version>1.0.5</version>
<packaging>jar</packaging>

<name>OPProtector</name>
Expand Down Expand Up @@ -73,7 +73,7 @@
<dependency>
<groupId>com.github.stefvanschie.inventoryframework</groupId>
<artifactId>IF</artifactId>
<version>0.10.13</version>
<version>0.10.19</version>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
Expand Down
7 changes: 0 additions & 7 deletions src/main/java/org/kasun/opprotector/MainManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.kasun.opprotector.Punishments.PunishmentManager;
import org.kasun.opprotector.Scanner.OfflineScanResult;
import org.kasun.opprotector.Utils.Log;
import org.kasun.opprotector.Utils.UpdateChecker;
import org.kasun.opprotector.VerificationProcess.VerificationProcessManager;
import org.bukkit.Bukkit;
import org.bukkit.event.HandlerList;
Expand All @@ -29,7 +28,6 @@ public class MainManager {
private LiveScanner liveScanner;
private IpTable ipTable;
private Log log;
private UpdateChecker updateChecker;
private List<OfflineScanResult> offlinePlayerScanResultList;
private LuckPermUpdate luckPermUpdate;
OPProtector plugin = OPProtector.getInstance();
Expand All @@ -43,7 +41,6 @@ public MainManager() {
liveScanner = new LiveScanner(configManager);
ipTable = new IpTable();
log = new Log();
updateChecker = new UpdateChecker(plugin, "https://raw.githubusercontent.com/ka0un/OPProtector/master/ver.txt", plugin.getDescription().getVersion());
offlinePlayerScanResultList = new ArrayList<>();
luckPermUpdate = new LuckPermUpdate();
}
Expand All @@ -60,7 +57,6 @@ public void reload() {
setLiveScanner(new LiveScanner(configManager));
setIpTable(new IpTable());
setLog(new Log());
setUpdateChecker(new UpdateChecker(plugin, "https://github.com/ka0un/OPProtector/blob/master/ver.txt", plugin.getDescription().getVersion()));
ConsoleCommandSender console = Bukkit.getServer().getConsoleSender();
offlinePlayerScanResultList = new ArrayList<>();
luckPermUpdate = new LuckPermUpdate();
Expand Down Expand Up @@ -146,7 +142,4 @@ public void setLog(Log log) {
this.log = log;
}

public void setUpdateChecker(UpdateChecker updateChecker) {
this.updateChecker = updateChecker;
}
}
51 changes: 0 additions & 51 deletions src/main/java/org/kasun/opprotector/Utils/UpdateChecker.java

This file was deleted.

0 comments on commit 3ddf320

Please sign in to comment.