mirror of
https://github.com/tanyaofei/minecraft-fakeplayer.git
synced 2025-09-14 11:16:46 +08:00
移除不应该出现的 protocollib 依赖
This commit is contained in:
parent
f6ae87157d
commit
d4b032b6d3
12
pom.xml
12
pom.xml
@ -146,12 +146,12 @@
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.comphenix.protocol</groupId>
|
||||
<artifactId>ProtocolLib</artifactId>
|
||||
<version>5.0.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.comphenix.protocol</groupId>-->
|
||||
<!-- <artifactId>ProtocolLib</artifactId>-->
|
||||
<!-- <version>5.0.0</version>-->
|
||||
<!-- <scope>provided</scope>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
</dependencies>
|
||||
</project>
|
||||
|
@ -1,7 +1,5 @@
|
||||
package io.github.hello09x.fakeplayer;
|
||||
|
||||
import com.comphenix.protocol.ProtocolLibrary;
|
||||
import com.comphenix.protocol.ProtocolManager;
|
||||
import io.github.hello09x.fakeplayer.command.RootCommand;
|
||||
import io.github.hello09x.fakeplayer.listener.PlayerDeathListener;
|
||||
import io.github.hello09x.fakeplayer.listener.PlayerInteractAtEntityListener;
|
||||
@ -17,9 +15,6 @@ public final class Main extends JavaPlugin {
|
||||
@Getter
|
||||
private static Main instance;
|
||||
|
||||
@Getter
|
||||
private static ProtocolManager protocolManager;
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
// Plugin startup logic
|
||||
@ -38,11 +33,6 @@ public final class Main extends JavaPlugin {
|
||||
UsedUUIDRepository.instance.save();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLoad() {
|
||||
protocolManager = ProtocolLibrary.getProtocolManager();
|
||||
}
|
||||
|
||||
private void registerListeners() {
|
||||
var pm = getServer().getPluginManager();
|
||||
pm.registerEvents(PlayerPreLoginListener.instance, this);
|
||||
|
Loading…
Reference in New Issue
Block a user