mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-22 04:37:42 +01:00
Merge remote-tracking branch 'origin/jules' into jules
This commit is contained in:
commit
df5c8e4791
@ -143,7 +143,7 @@
|
||||
<dependency>
|
||||
<groupId>net.Indyuce</groupId>
|
||||
<artifactId>MMOCore-API</artifactId>
|
||||
<version>1.11.2-SNAPSHOT</version>
|
||||
<version>1.12-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<!-- MythicEnchants -->
|
||||
|
@ -86,7 +86,6 @@ public class MMOItems extends JavaPlugin {
|
||||
private BlockManager blockManager;
|
||||
private TierManager tierManager;
|
||||
private SetManager setManager;
|
||||
|
||||
private VaultSupport vaultSupport;
|
||||
private final List<RPGHandler> rpgPlugins = new ArrayList<>();
|
||||
|
||||
@ -106,6 +105,8 @@ public class MMOItems extends JavaPlugin {
|
||||
|
||||
@Override
|
||||
public void onLoad() {
|
||||
getLogger().log(Level.INFO, "Plugin file is called '" + getFile().getName() + "'");
|
||||
|
||||
PluginUtils.isDependencyPresent("WorldEdit", u -> {
|
||||
try {
|
||||
new WorldEditSupport();
|
||||
|
@ -1,8 +1,8 @@
|
||||
package net.Indyuce.mmoitems.comp.mmocore;
|
||||
|
||||
import io.lumine.mythic.lib.api.event.SynchronizedDataLoadEvent;
|
||||
import io.lumine.mythic.lib.version.VersionMaterial;
|
||||
import net.Indyuce.mmocore.MMOCore;
|
||||
import net.Indyuce.mmocore.api.event.AsyncPlayerDataLoadEvent;
|
||||
import net.Indyuce.mmocore.api.event.PlayerChangeClassEvent;
|
||||
import net.Indyuce.mmocore.api.event.PlayerLevelUpEvent;
|
||||
import net.Indyuce.mmocore.api.event.PlayerResourceUpdateEvent;
|
||||
@ -84,9 +84,10 @@ public class MMOCoreHook implements RPGHandler, Listener {
|
||||
* Fixes https://gitlab.com/phoenix-dvpmt/mmocore/-/issues/545
|
||||
*/
|
||||
@EventHandler
|
||||
public void updateInventoryOnLoad(AsyncPlayerDataLoadEvent event) {
|
||||
if (PlayerData.has(event.getPlayer()))
|
||||
PlayerData.get(event.getPlayer()).getInventory().scheduleUpdate();
|
||||
public void updateInventoryOnLoad(SynchronizedDataLoadEvent event) {
|
||||
if (event.getManager().getOwningPlugin().equals(MMOCore.plugin))
|
||||
if (PlayerData.has(event.getHolder().getPlayer()))
|
||||
PlayerData.get(event.getHolder().getPlayer()).getInventory().scheduleUpdate();
|
||||
}
|
||||
|
||||
public static class MMOCoreRPGPlayer extends RPGPlayer {
|
||||
|
@ -4,7 +4,7 @@ main: net.Indyuce.mmoitems.MMOItems
|
||||
author: Indyuce
|
||||
description: ${project.description}
|
||||
depend: [MythicLib]
|
||||
softdepend: [WorldGuard,Residence,BossShopPro,SkillAPI,SkillsPro,MMOCore,MythicMobs,MMOInventory,PlaceholderAPI,Vault,Denizen,AureliumSkills]
|
||||
softdepend: [WorldGuard,Residence,BossShopPro,SkillAPI,SkillsPro,MMOCore,MMOProfiles,MythicMobs,MMOInventory,PlaceholderAPI,Vault,Denizen,AureliumSkills]
|
||||
api-version: 1.13
|
||||
commands:
|
||||
mmoitems:
|
||||
|
@ -5,7 +5,7 @@ Register the PhoenixDevt repo
|
||||
```
|
||||
<repository>
|
||||
<id>phoenix</id>
|
||||
<url>https://nexus.phoenixdevt.fr/repository/maven-public/</url>
|
||||
<url>https://nexus.phoenixdevt.fr/repository/maven-public/</url>
|
||||
</repository>
|
||||
```
|
||||
And then add MMOItems-API as dependency
|
||||
|
1
pom.xml
1
pom.xml
@ -16,7 +16,6 @@
|
||||
<description>A great item solution for your RPG server!!</description>
|
||||
|
||||
<properties>
|
||||
<revision>6.9.2-SNAPSHOT</revision>
|
||||
<downloadSources>false</downloadSources>
|
||||
<downloadJavadocs>false</downloadJavadocs>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
Loading…
Reference in New Issue
Block a user