mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-22 18:47:20 +01:00
Update to allpay 6
This commit is contained in:
parent
5d2534f497
commit
8272e121f4
2
pom.xml
2
pom.xml
@ -211,7 +211,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fernferret.allpay</groupId>
|
<groupId>com.fernferret.allpay</groupId>
|
||||||
<artifactId>AllPay</artifactId>
|
<artifactId>AllPay</artifactId>
|
||||||
<version>5</version>
|
<version>6</version>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -62,9 +62,8 @@ import java.util.logging.Logger;
|
|||||||
* The implementation of the Multiverse-{@link Core}.
|
* The implementation of the Multiverse-{@link Core}.
|
||||||
*/
|
*/
|
||||||
public class MultiverseCore extends JavaPlugin implements MVPlugin, Core {
|
public class MultiverseCore extends JavaPlugin implements MVPlugin, Core {
|
||||||
private static final int PROTOCOL = 12;
|
private static final int PROTOCOL = 13;
|
||||||
|
|
||||||
// TODO maybe add deprecated stubs for the old globals
|
|
||||||
private static Map<String, String> teleportQueue = new HashMap<String, String>();
|
private static Map<String, String> teleportQueue = new HashMap<String, String>();
|
||||||
|
|
||||||
private AnchorManager anchorManager = new AnchorManager(this);
|
private AnchorManager anchorManager = new AnchorManager(this);
|
||||||
@ -280,7 +279,7 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core {
|
|||||||
LOGGER.info(String.format("%s - Version %s was NOT ENABLED!!!", LOG_TAG, this.getDescription().getVersion()));
|
LOGGER.info(String.format("%s - Version %s was NOT ENABLED!!!", LOG_TAG, this.getDescription().getVersion()));
|
||||||
LOGGER.info(String.format("%s A plugin that has loaded before %s has an incompatible version of AllPay (an internal library)!",
|
LOGGER.info(String.format("%s A plugin that has loaded before %s has an incompatible version of AllPay (an internal library)!",
|
||||||
LOG_TAG, this.getDescription().getName()));
|
LOG_TAG, this.getDescription().getName()));
|
||||||
LOGGER.info(String.format("%s The Following Plugins MAY out of date: %s", LOG_TAG, AllPay.pluginsThatUseUs.toString()));
|
LOGGER.info(String.format("%s The Following Plugins MAY out of date: %s", LOG_TAG, this.banker.getPluginsThatUseUs()));
|
||||||
LOGGER.info(String.format("%s This plugin needs AllPay v%f or higher and another plugin has loaded v%f!",
|
LOGGER.info(String.format("%s This plugin needs AllPay v%f or higher and another plugin has loaded v%f!",
|
||||||
LOG_TAG, ALLPAY_VERSION, this.banker.getVersion()));
|
LOG_TAG, ALLPAY_VERSION, this.banker.getVersion()));
|
||||||
return false;
|
return false;
|
||||||
|
@ -36,7 +36,7 @@ public class MVPluginListener implements Listener {
|
|||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void pluginEnable(PluginEnableEvent event) {
|
public void pluginEnable(PluginEnableEvent event) {
|
||||||
// Let AllPay handle all econ plugin loadings, only go for econ plugins we support
|
// Let AllPay handle all econ plugin loadings, only go for econ plugins we support
|
||||||
if (Arrays.asList(AllPay.validEconPlugins).contains(event.getPlugin().getDescription().getName())) {
|
if (Arrays.asList(AllPay.getValidEconPlugins()).contains(event.getPlugin().getDescription().getName())) {
|
||||||
this.plugin.setBank(this.plugin.getBanker().loadEconPlugin());
|
this.plugin.setBank(this.plugin.getBanker().loadEconPlugin());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user