mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
ProtocolLib support
Former-commit-id: fc78f5c17d208e9e981c431c0349fc40c27ccb3d [formerly 39c3d5c24f8dd5afc5147f4f603078775f281228] Former-commit-id: 359f4632692e880c9c6283e9e007b024b6d71bde
This commit is contained in:
1 parent
e0479d5999
commit
914c61b628
1 file changed
+7
@@ -1,5 +1,6 @@
|
||||
package org.maxgamer.quickshop;
|
||||
|
||||
import com.comphenix.protocol.ProtocolLib;
|
||||
import com.onarandombox.MultiverseCore.MultiverseCore;
|
||||
import org.bukkit.*;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
@@ -96,6 +97,7 @@ public class QuickShop extends JavaPlugin {
|
||||
private boolean noopDisable;
|
||||
private boolean setupDBonEnableding = false;
|
||||
public String dbPrefix="";
|
||||
public ProtocolLib protocolLibPlugin;
|
||||
/** The plugin metrics from Hidendra */
|
||||
// public Metrics getMetrics(){ return metrics; }
|
||||
public int getShopLimit(Player p) {
|
||||
@@ -159,6 +161,11 @@ public class QuickShop extends JavaPlugin {
|
||||
if (mPlugin != null) {
|
||||
getLogger().info("Successfully loaded MultiverseCore support!");
|
||||
}
|
||||
protocolLibPlugin = (ProtocolLib) Bukkit.getPluginManager().getPlugin("ProtocolLib");
|
||||
|
||||
if (protocolLibPlugin != null) {
|
||||
getLogger().info("Successfully loaded ProtocolLib support!");
|
||||
}
|
||||
if(getConfig().getInt("config-version")==0)
|
||||
getConfig().set("config-version", 1);
|
||||
updateConfig(getConfig().getInt("config-version"));
|
||||
|
||||
Reference in new issue
Block a user