refactor: cleanup the code
This commit is contained in:
parent
c7154510de
commit
ebdcdd34ae
4 changed files with 6 additions and 42 deletions
|
@ -78,10 +78,6 @@
|
|||
<id>spigot-repo</id>
|
||||
<url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>dmulloy2-repo</id>
|
||||
<url>https://repo.dmulloy2.net/repository/public/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>codemc-snapshots</id>
|
||||
<url>https://repo.codemc.io/repository/maven-snapshots/</url>
|
||||
|
@ -164,12 +160,6 @@
|
|||
<version>3.1.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.comphenix.protocol</groupId>
|
||||
<artifactId>ProtocolLib</artifactId>
|
||||
<version>5.0.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<properties>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
package net.artelnatif.nicko;
|
||||
|
||||
import com.comphenix.protocol.ProtocolLibrary;
|
||||
import com.comphenix.protocol.ProtocolManager;
|
||||
import de.studiocode.invui.gui.structure.Structure;
|
||||
import de.studiocode.invui.item.builder.ItemBuilder;
|
||||
import de.studiocode.invui.item.impl.SimpleItem;
|
||||
|
@ -38,7 +36,6 @@ public class NickoBukkit extends JavaPlugin {
|
|||
private MojangAPI mojangAPI;
|
||||
private PlayerDataStore dataStore;
|
||||
private LocaleFileManager localeFileManager;
|
||||
private ProtocolManager protocolManager;
|
||||
|
||||
public NickoBukkit() { this.unitTesting = false; }
|
||||
|
||||
|
@ -97,7 +94,6 @@ public class NickoBukkit extends JavaPlugin {
|
|||
saveDefaultConfig();
|
||||
config = new NickoConfiguration(this);
|
||||
dataStore = new PlayerDataStore(this);
|
||||
protocolManager = ProtocolLibrary.getProtocolManager();
|
||||
|
||||
getLogger().info("Loading internals...");
|
||||
if (getInternals() == null) {
|
||||
|
@ -167,10 +163,6 @@ public class NickoBukkit extends JavaPlugin {
|
|||
return localeFileManager;
|
||||
}
|
||||
|
||||
public ProtocolManager getProtocolManager() {
|
||||
return protocolManager;
|
||||
}
|
||||
|
||||
public boolean isUnitTesting() {
|
||||
return unitTesting;
|
||||
}
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
package net.artelnatif.nicko.impl;
|
||||
|
||||
import com.comphenix.protocol.ProtocolManager;
|
||||
import net.artelnatif.nicko.NickoBukkit;
|
||||
|
||||
public interface InternalsProtocolLib extends Internals {
|
||||
default ProtocolManager getProtocolLib() {
|
||||
return NickoBukkit.getInstance().getProtocolManager();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue