mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
parent
097a5a0894
commit
8a35d69540
@ -49,6 +49,7 @@ Version 1.5.01-dev
|
|||||||
! Changed behavior of the Blast Mining ability "Demolition Expert"; now only decreases damage for the ability user
|
! Changed behavior of the Blast Mining ability "Demolition Expert"; now only decreases damage for the ability user
|
||||||
! Updated for new getOnlinePlayers() behavior
|
! Updated for new getOnlinePlayers() behavior
|
||||||
! Changed McMMOPlayerDeathPenaltyEvent to get fired after hardcore penalty calculations, use McMMOPlayerPreDeathPenaltyEvent for old behavior
|
! Changed McMMOPlayerDeathPenaltyEvent to get fired after hardcore penalty calculations, use McMMOPlayerPreDeathPenaltyEvent for old behavior
|
||||||
|
! Moved Refresh_Chunks setting from hidden.yml to config.yml
|
||||||
- Removed salvage ability from Repair, salvage has it's own (child) skill now
|
- Removed salvage ability from Repair, salvage has it's own (child) skill now
|
||||||
|
|
||||||
Version 1.5.00
|
Version 1.5.00
|
||||||
|
@ -252,6 +252,7 @@ public class Config extends AutoUpdateConfigLoader {
|
|||||||
public long getDatabasePlayerCooldown() { return config.getLong("Commands.Database.Player_Cooldown", 1750); }
|
public long getDatabasePlayerCooldown() { return config.getLong("Commands.Database.Player_Cooldown", 1750); }
|
||||||
|
|
||||||
public boolean getLevelUpSoundsEnabled() { return config.getBoolean("General.LevelUp_Sounds", true); }
|
public boolean getLevelUpSoundsEnabled() { return config.getBoolean("General.LevelUp_Sounds", true); }
|
||||||
|
public boolean getRefreshChunksEnabled() { return config.getBoolean("General.Refresh_Chunks", false); }
|
||||||
|
|
||||||
/* Mob Healthbar */
|
/* Mob Healthbar */
|
||||||
public MobHealthbarType getMobHealthbarDefault() {
|
public MobHealthbarType getMobHealthbarDefault() {
|
||||||
|
@ -11,7 +11,6 @@ public class HiddenConfig {
|
|||||||
private boolean chunkletsEnabled;
|
private boolean chunkletsEnabled;
|
||||||
private int conversionRate;
|
private int conversionRate;
|
||||||
private boolean useEnchantmentBuffs;
|
private boolean useEnchantmentBuffs;
|
||||||
private boolean resendChunksAfterBlockAbility;
|
|
||||||
private int uuidConvertAmount;
|
private int uuidConvertAmount;
|
||||||
private int mojangRateLimit;
|
private int mojangRateLimit;
|
||||||
private long mojangLimitPeriod;
|
private long mojangLimitPeriod;
|
||||||
@ -35,7 +34,6 @@ public class HiddenConfig {
|
|||||||
chunkletsEnabled = config.getBoolean("Options.Chunklets", true);
|
chunkletsEnabled = config.getBoolean("Options.Chunklets", true);
|
||||||
conversionRate = config.getInt("Options.ConversionRate", 1);
|
conversionRate = config.getInt("Options.ConversionRate", 1);
|
||||||
useEnchantmentBuffs = config.getBoolean("Options.EnchantmentBuffs", true);
|
useEnchantmentBuffs = config.getBoolean("Options.EnchantmentBuffs", true);
|
||||||
resendChunksAfterBlockAbility = config.getBoolean("Options.RefreshChunks", false);
|
|
||||||
uuidConvertAmount = config.getInt("Options.UUIDConvertAmount", 5);
|
uuidConvertAmount = config.getInt("Options.UUIDConvertAmount", 5);
|
||||||
mojangRateLimit = config.getInt("Options.MojangRateLimit", 50000);
|
mojangRateLimit = config.getInt("Options.MojangRateLimit", 50000);
|
||||||
mojangLimitPeriod = config.getLong("Options.MojangLimitPeriod", 600000);
|
mojangLimitPeriod = config.getLong("Options.MojangLimitPeriod", 600000);
|
||||||
@ -54,10 +52,6 @@ public class HiddenConfig {
|
|||||||
return useEnchantmentBuffs;
|
return useEnchantmentBuffs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean resendChunksAfterBlockAbility() {
|
|
||||||
return resendChunksAfterBlockAbility;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getUUIDConvertAmount() {
|
public int getUUIDConvertAmount() {
|
||||||
return uuidConvertAmount;
|
return uuidConvertAmount;
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ import org.bukkit.entity.Player;
|
|||||||
import org.bukkit.scheduler.BukkitRunnable;
|
import org.bukkit.scheduler.BukkitRunnable;
|
||||||
|
|
||||||
import com.gmail.nossr50.mcMMO;
|
import com.gmail.nossr50.mcMMO;
|
||||||
import com.gmail.nossr50.config.HiddenConfig;
|
import com.gmail.nossr50.config.Config;
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
||||||
import com.gmail.nossr50.datatypes.skills.AbilityType;
|
import com.gmail.nossr50.datatypes.skills.AbilityType;
|
||||||
import com.gmail.nossr50.util.EventUtils;
|
import com.gmail.nossr50.util.EventUtils;
|
||||||
@ -39,7 +39,7 @@ public class AbilityDisableTask extends BukkitRunnable {
|
|||||||
// Fallthrough
|
// Fallthrough
|
||||||
|
|
||||||
case BERSERK:
|
case BERSERK:
|
||||||
if (HiddenConfig.getInstance().resendChunksAfterBlockAbility()) {
|
if (Config.getInstance().getRefreshChunksEnabled()) {
|
||||||
resendChunkRadiusAt(player, 1);
|
resendChunkRadiusAt(player, 1);
|
||||||
}
|
}
|
||||||
// Fallthrough
|
// Fallthrough
|
||||||
|
@ -27,6 +27,11 @@ General:
|
|||||||
# Play level-up sounds
|
# Play level-up sounds
|
||||||
LevelUp_Sounds: true
|
LevelUp_Sounds: true
|
||||||
|
|
||||||
|
# This should fix blocks being broken client side, but not server-side.
|
||||||
|
# Enable to refresh the chunks around a player at the end of Super Breaker,
|
||||||
|
# Giga Drill Breaker, and Berserk. Resource intensive for larger servers.
|
||||||
|
Refresh_Chunks: false
|
||||||
|
|
||||||
#
|
#
|
||||||
# Settings for the mcMMO scoreboards
|
# Settings for the mcMMO scoreboards
|
||||||
###
|
###
|
||||||
|
@ -9,8 +9,6 @@ Options:
|
|||||||
ConversionRate: 1
|
ConversionRate: 1
|
||||||
# true to use enchantment buffs for Super Breaker & Giga Drill Breaker, false to use potion buffs
|
# true to use enchantment buffs for Super Breaker & Giga Drill Breaker, false to use potion buffs
|
||||||
EnchantmentBuffs: true
|
EnchantmentBuffs: true
|
||||||
# true to enable refreshing of chunks around a player at the end of Super Breaker, Giga Drill Breaker, and Berserk. This should fix blocks being broken client side, but not server-side
|
|
||||||
RefreshChunks: false
|
|
||||||
|
|
||||||
# Amount of users to convert every interval
|
# Amount of users to convert every interval
|
||||||
UUIDConvertAmount: 100
|
UUIDConvertAmount: 100
|
||||||
|
Loading…
Reference in New Issue
Block a user