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>
|
<dependency>
|
||||||
<groupId>net.Indyuce</groupId>
|
<groupId>net.Indyuce</groupId>
|
||||||
<artifactId>MMOCore-API</artifactId>
|
<artifactId>MMOCore-API</artifactId>
|
||||||
<version>1.11.2-SNAPSHOT</version>
|
<version>1.12-SNAPSHOT</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- MythicEnchants -->
|
<!-- MythicEnchants -->
|
||||||
|
@ -86,7 +86,6 @@ public class MMOItems extends JavaPlugin {
|
|||||||
private BlockManager blockManager;
|
private BlockManager blockManager;
|
||||||
private TierManager tierManager;
|
private TierManager tierManager;
|
||||||
private SetManager setManager;
|
private SetManager setManager;
|
||||||
|
|
||||||
private VaultSupport vaultSupport;
|
private VaultSupport vaultSupport;
|
||||||
private final List<RPGHandler> rpgPlugins = new ArrayList<>();
|
private final List<RPGHandler> rpgPlugins = new ArrayList<>();
|
||||||
|
|
||||||
@ -106,6 +105,8 @@ public class MMOItems extends JavaPlugin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLoad() {
|
public void onLoad() {
|
||||||
|
getLogger().log(Level.INFO, "Plugin file is called '" + getFile().getName() + "'");
|
||||||
|
|
||||||
PluginUtils.isDependencyPresent("WorldEdit", u -> {
|
PluginUtils.isDependencyPresent("WorldEdit", u -> {
|
||||||
try {
|
try {
|
||||||
new WorldEditSupport();
|
new WorldEditSupport();
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package net.Indyuce.mmoitems.comp.mmocore;
|
package net.Indyuce.mmoitems.comp.mmocore;
|
||||||
|
|
||||||
|
import io.lumine.mythic.lib.api.event.SynchronizedDataLoadEvent;
|
||||||
import io.lumine.mythic.lib.version.VersionMaterial;
|
import io.lumine.mythic.lib.version.VersionMaterial;
|
||||||
import net.Indyuce.mmocore.MMOCore;
|
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.PlayerChangeClassEvent;
|
||||||
import net.Indyuce.mmocore.api.event.PlayerLevelUpEvent;
|
import net.Indyuce.mmocore.api.event.PlayerLevelUpEvent;
|
||||||
import net.Indyuce.mmocore.api.event.PlayerResourceUpdateEvent;
|
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
|
* Fixes https://gitlab.com/phoenix-dvpmt/mmocore/-/issues/545
|
||||||
*/
|
*/
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void updateInventoryOnLoad(AsyncPlayerDataLoadEvent event) {
|
public void updateInventoryOnLoad(SynchronizedDataLoadEvent event) {
|
||||||
if (PlayerData.has(event.getPlayer()))
|
if (event.getManager().getOwningPlugin().equals(MMOCore.plugin))
|
||||||
PlayerData.get(event.getPlayer()).getInventory().scheduleUpdate();
|
if (PlayerData.has(event.getHolder().getPlayer()))
|
||||||
|
PlayerData.get(event.getHolder().getPlayer()).getInventory().scheduleUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class MMOCoreRPGPlayer extends RPGPlayer {
|
public static class MMOCoreRPGPlayer extends RPGPlayer {
|
||||||
|
@ -4,7 +4,7 @@ main: net.Indyuce.mmoitems.MMOItems
|
|||||||
author: Indyuce
|
author: Indyuce
|
||||||
description: ${project.description}
|
description: ${project.description}
|
||||||
depend: [MythicLib]
|
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
|
api-version: 1.13
|
||||||
commands:
|
commands:
|
||||||
mmoitems:
|
mmoitems:
|
||||||
|
@ -5,7 +5,7 @@ Register the PhoenixDevt repo
|
|||||||
```
|
```
|
||||||
<repository>
|
<repository>
|
||||||
<id>phoenix</id>
|
<id>phoenix</id>
|
||||||
<url>https://nexus.phoenixdevt.fr/repository/maven-public/</url>
|
<url>https://nexus.phoenixdevt.fr/repository/maven-public/</url>
|
||||||
</repository>
|
</repository>
|
||||||
```
|
```
|
||||||
And then add MMOItems-API as dependency
|
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>
|
<description>A great item solution for your RPG server!!</description>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<revision>6.9.2-SNAPSHOT</revision>
|
|
||||||
<downloadSources>false</downloadSources>
|
<downloadSources>false</downloadSources>
|
||||||
<downloadJavadocs>false</downloadJavadocs>
|
<downloadJavadocs>false</downloadJavadocs>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
Loading…
Reference in New Issue
Block a user