mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06:45 +01:00
dev mode
This commit is contained in:
parent
adbcf11c15
commit
8451f84083
@ -1,3 +1,6 @@
|
||||
Version 2.1.147
|
||||
|
||||
|
||||
Version 2.1.146
|
||||
A bug where players would disconnect from mcMMO messages has been fixed (thanks kashike / read notes)
|
||||
It should be noted this was NOT an mcMMO bug, but a bug within Spigot since Spigot 1.16
|
||||
@ -8,7 +11,6 @@ Version 2.1.146
|
||||
|
||||
NOTES:
|
||||
Shout out to Kashike
|
||||
If you guys are looking to hire someone of exceptional quality for a Java project, Kashike is a skilled developer who I respect and he makes a living off free lance right now. Try contacting him if you do!
|
||||
Kashike is a developer on the mcMMO team, however after I recruited him had a lot of life stuff come at him and hasn't had a chance to contribute until now!
|
||||
|
||||
JSON is used by Minecraft for a lot of stuff, in this case the JSON mcMMO made use of was related to displaying text in chat or displaying text on the clients screen in other places such as the action bar, there's been a bad bug in Spigot since 1.16 that would disconnect players some of the time when sending JSON components.
|
||||
|
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||
<artifactId>mcMMO</artifactId>
|
||||
<version>2.1.146</version>
|
||||
<version>2.1.147-SNAPSHOT</version>
|
||||
<name>mcMMO</name>
|
||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||
<scm>
|
||||
|
@ -0,0 +1,40 @@
|
||||
//package com.gmail.nossr50.listeners;
|
||||
//
|
||||
//import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
||||
//import com.gmail.nossr50.datatypes.skills.SuperAbilityType;
|
||||
//import com.gmail.nossr50.mcMMO;
|
||||
//import com.gmail.nossr50.util.player.UserManager;
|
||||
//import com.gmail.nossr50.util.skills.SkillUtils;
|
||||
//import org.bukkit.Bukkit;
|
||||
//import org.bukkit.entity.Player;
|
||||
//import org.bukkit.event.EventHandler;
|
||||
//import org.bukkit.event.EventPriority;
|
||||
//import org.bukkit.event.Listener;
|
||||
//import org.bukkit.event.player.PlayerCommandPreprocessEvent;
|
||||
//
|
||||
//public class CommandListener implements Listener {
|
||||
//
|
||||
// private final mcMMO pluginRef;
|
||||
//
|
||||
// public CommandListener(mcMMO plugin) {
|
||||
// this.pluginRef = plugin;
|
||||
// }
|
||||
//
|
||||
// @EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
|
||||
// public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {
|
||||
// Player player = event.getPlayer();
|
||||
//
|
||||
// SkillUtils.removeAbilityBoostsFromInventory(player);
|
||||
//
|
||||
// McMMOPlayer mmoPlayer = UserManager.getPlayer(player);
|
||||
//
|
||||
// if(mmoPlayer == null)
|
||||
// return;
|
||||
//
|
||||
// Bukkit.getServer().getScheduler().runTaskLater(pluginRef, () -> {
|
||||
// if(mmoPlayer.getAbilityMode(SuperAbilityType.GIGA_DRILL_BREAKER) || mmoPlayer.getAbilityMode(SuperAbilityType.SUPER_BREAKER)) {
|
||||
// SkillUtils.handleAbilitySpeedIncrease(player);
|
||||
// }
|
||||
// }, 5);
|
||||
// }
|
||||
//}
|
@ -555,6 +555,7 @@ public class mcMMO extends JavaPlugin {
|
||||
pluginManager.registerEvents(new InventoryListener(this), this);
|
||||
pluginManager.registerEvents(new SelfListener(this), this);
|
||||
pluginManager.registerEvents(new WorldListener(this), this);
|
||||
// pluginManager.registerEvents(new CommandListener(this), this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -198,10 +198,6 @@ public class SkillUtils {
|
||||
}
|
||||
|
||||
public static void removeAbilityBoostsFromInventory(@NotNull Player player) {
|
||||
if (!HiddenConfig.getInstance().useEnchantmentBuffs()) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (ItemStack itemStack : player.getInventory().getContents()) {
|
||||
removeAbilityBuff(itemStack);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user