mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
add ProtocolLib
Former-commit-id: be0b6c933bfa52ba7d2c4796262ec2315b886760 [formerly 26d99a308a64e8ce4af14674eb08beb8650d9ae0] Former-commit-id: 0690240f6389eb09078506194aa26711f1ce6228
This commit is contained in:
1 parent
89e27019f4
commit
6ae9a4eecf
1 file changed
+7
@@ -1,6 +1,8 @@
|
||||
package org.maxgamer.quickshop;
|
||||
|
||||
import com.comphenix.protocol.ProtocolLib;
|
||||
import com.comphenix.protocol.ProtocolLibrary;
|
||||
import com.comphenix.protocol.ProtocolManager;
|
||||
import com.onarandombox.MultiverseCore.MultiverseCore;
|
||||
import org.bukkit.*;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
@@ -906,6 +908,11 @@ public class QuickShop extends JavaPlugin {
|
||||
public Database getDB() {
|
||||
return this.database;
|
||||
}
|
||||
public ProtocolManager getProtocolLib() {
|
||||
if(this.protocolLibPlugin==null)
|
||||
return null;
|
||||
return ProtocolLibrary.getProtocolManager();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the ShopManager. This is used for fetching, adding and removing
|
||||
|
||||
Reference in new issue
Block a user