mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-02 20:45:28 +02:00
Add Smelting config options
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package com.gmail.nossr50.util.commands;
|
||||
|
||||
import com.gmail.nossr50.config.MainConfig;
|
||||
import com.gmail.nossr50.core.MetadataConstants;
|
||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
||||
import com.gmail.nossr50.datatypes.player.PlayerProfile;
|
||||
@@ -270,7 +269,7 @@ public final class CommandUtils {
|
||||
* @return Matched name or {@code partialName} if no match was found
|
||||
*/
|
||||
public static String getMatchedPlayerName(String partialName) {
|
||||
if (MainConfig.getInstance().getMatchOfflinePlayers()) {
|
||||
if (mcMMO.getConfigManager().getConfigCommands().getMisc().isMatchOfflinePlayers()) {
|
||||
List<String> matches = matchPlayer(partialName);
|
||||
|
||||
if (matches.size() == 1) {
|
||||
|
@@ -16,25 +16,25 @@ public final class ParticleEffectUtils {
|
||||
}
|
||||
|
||||
public static void playBleedEffect(LivingEntity livingEntity) {
|
||||
if (!MainConfig.getInstance().getBleedEffectEnabled()) {
|
||||
/*if (!MainConfig.getInstance().getBleedEffectEnabled()) {
|
||||
return;
|
||||
}
|
||||
}*/
|
||||
|
||||
livingEntity.getWorld().playEffect(livingEntity.getEyeLocation(), Effect.STEP_SOUND, Material.REDSTONE_WIRE);
|
||||
}
|
||||
|
||||
public static void playDodgeEffect(Player player) {
|
||||
if (!MainConfig.getInstance().getDodgeEffectEnabled()) {
|
||||
/*if (!MainConfig.getInstance().getDodgeEffectEnabled()) {
|
||||
return;
|
||||
}
|
||||
}*/
|
||||
|
||||
playSmokeEffect(player);
|
||||
}
|
||||
|
||||
public static void playFluxEffect(Location location) {
|
||||
if (!MainConfig.getInstance().getFluxEffectEnabled()) {
|
||||
/*if (!MainConfig.getInstance().getFluxEffectEnabled()) {
|
||||
return;
|
||||
}
|
||||
}*/
|
||||
|
||||
location.getWorld().playEffect(location, Effect.MOBSPAWNER_FLAMES, 1);
|
||||
}
|
||||
@@ -56,9 +56,9 @@ public final class ParticleEffectUtils {
|
||||
}
|
||||
|
||||
public static void playGreaterImpactEffect(LivingEntity livingEntity) {
|
||||
if (!MainConfig.getInstance().getGreaterImpactEffectEnabled()) {
|
||||
/*if (!MainConfig.getInstance().getGreaterImpactEffectEnabled()) {
|
||||
return;
|
||||
}
|
||||
}*/
|
||||
|
||||
Location location = livingEntity.getEyeLocation();
|
||||
|
||||
@@ -66,9 +66,9 @@ public final class ParticleEffectUtils {
|
||||
}
|
||||
|
||||
public static void playCallOfTheWildEffect(LivingEntity livingEntity) {
|
||||
if (!MainConfig.getInstance().getCallOfTheWildEffectEnabled()) {
|
||||
/*if (!MainConfig.getInstance().getCallOfTheWildEffectEnabled()) {
|
||||
return;
|
||||
}
|
||||
}*/
|
||||
|
||||
livingEntity.getWorld().playEffect(livingEntity.getEyeLocation(), Effect.MOBSPAWNER_FLAMES, 1);
|
||||
}
|
||||
|
@@ -1,6 +1,5 @@
|
||||
package com.gmail.nossr50.util.skills;
|
||||
|
||||
import com.gmail.nossr50.config.AdvancedConfig;
|
||||
import com.gmail.nossr50.datatypes.experience.XPGainReason;
|
||||
import com.gmail.nossr50.datatypes.experience.XPGainSource;
|
||||
import com.gmail.nossr50.datatypes.interactions.NotificationType;
|
||||
|
Reference in New Issue
Block a user