mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 00:30:07 +01:00
Version 1.0.46
This commit is contained in:
parent
f70be2e53d
commit
9da14a9163
@ -1,5 +1,19 @@
|
|||||||
Changelog:
|
Changelog:
|
||||||
#Versions without changelogs probably had very small misc fixes, like tweaks to the source code
|
#Versions without changelogs probably had very small misc fixes, like tweaks to the source code
|
||||||
|
Version 1.0.47
|
||||||
|
Fixed another BukkitContrib error for servers not running BukkitContrib
|
||||||
|
|
||||||
|
Version 1.0.46
|
||||||
|
Fixed bug preventing Excavation from gaining skill
|
||||||
|
|
||||||
|
Version 1.0.45
|
||||||
|
Corrected /stats showing Repair XP as Level for Repair
|
||||||
|
Corrected /repair showing Repair XP as Level for Repair
|
||||||
|
Corrected /whois showing Repair XP as Level for Repair
|
||||||
|
|
||||||
|
Version 1.0.44
|
||||||
|
Fixed my 'fix' of BukkitContrib errors with Tree Feller
|
||||||
|
|
||||||
Version 1.0.43
|
Version 1.0.43
|
||||||
Stopped things from being auto-smelt'd
|
Stopped things from being auto-smelt'd
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ import org.bukkitcontrib.sound.SoundManager;
|
|||||||
|
|
||||||
import com.gmail.nossr50.Users;
|
import com.gmail.nossr50.Users;
|
||||||
import com.gmail.nossr50.m;
|
import com.gmail.nossr50.m;
|
||||||
import com.gmail.nossr50.config.LoadProperties;
|
|
||||||
import com.gmail.nossr50.datatypes.PlayerProfile;
|
import com.gmail.nossr50.datatypes.PlayerProfile;
|
||||||
import com.gmail.nossr50.datatypes.SkillType;
|
import com.gmail.nossr50.datatypes.SkillType;
|
||||||
|
|
||||||
@ -20,8 +19,6 @@ public class contribStuff
|
|||||||
{
|
{
|
||||||
public static void playSoundForPlayer(SoundEffect effect, Player player, Location location)
|
public static void playSoundForPlayer(SoundEffect effect, Player player, Location location)
|
||||||
{
|
{
|
||||||
if(!LoadProperties.contribEnabled)
|
|
||||||
return;
|
|
||||||
//Contrib stuff
|
//Contrib stuff
|
||||||
ContribPlayer cPlayer = ContribCraftPlayer.getContribPlayer(player);
|
ContribPlayer cPlayer = ContribCraftPlayer.getContribPlayer(player);
|
||||||
SoundManager SM = BukkitContrib.getSoundManager();
|
SoundManager SM = BukkitContrib.getSoundManager();
|
||||||
|
@ -189,7 +189,9 @@ public class mcBlockListener extends BlockListener {
|
|||||||
&& block.getTypeId() == 17
|
&& block.getTypeId() == 17
|
||||||
&& m.blockBreakSimulate(block, player, plugin))
|
&& m.blockBreakSimulate(block, player, plugin))
|
||||||
{
|
{
|
||||||
|
if(LoadProperties.contribEnabled)
|
||||||
contribStuff.playSoundForPlayer(SoundEffect.EXPLODE, player, block.getLocation());
|
contribStuff.playSoundForPlayer(SoundEffect.EXPLODE, player, block.getLocation());
|
||||||
|
|
||||||
WoodCutting.treeFeller(block, player, plugin);
|
WoodCutting.treeFeller(block, player, plugin);
|
||||||
for(Block blockx : plugin.misc.treeFeller)
|
for(Block blockx : plugin.misc.treeFeller)
|
||||||
{
|
{
|
||||||
|
@ -37,7 +37,8 @@ public class mcLocale
|
|||||||
|
|
||||||
String output = RESOURCE_BUNDLE.getString(key);
|
String output = RESOURCE_BUNDLE.getString(key);
|
||||||
|
|
||||||
if (messageArguments != null) {
|
if (messageArguments != null)
|
||||||
|
{
|
||||||
MessageFormat formatter = new MessageFormat("");
|
MessageFormat formatter = new MessageFormat("");
|
||||||
formatter.applyPattern(output);
|
formatter.applyPattern(output);
|
||||||
output = formatter.format(messageArguments);
|
output = formatter.format(messageArguments);
|
||||||
|
@ -474,13 +474,13 @@ public class mcMMO extends JavaPlugin
|
|||||||
player.sendMessage(mcLocale.getString("m.MiningSuperBreakerLength", new Object[] {ticks}));
|
player.sendMessage(mcLocale.getString("m.MiningSuperBreakerLength", new Object[] {ticks}));
|
||||||
}
|
}
|
||||||
else if(label.equalsIgnoreCase("repair") || split[0].toLowerCase().equalsIgnoreCase(mcLocale.getString("m.SkillRepair").toLowerCase())){
|
else if(label.equalsIgnoreCase("repair") || split[0].toLowerCase().equalsIgnoreCase(mcLocale.getString("m.SkillRepair").toLowerCase())){
|
||||||
float skillvalue = (float)PP.getSkillXpLevel(SkillType.REPAIR);
|
float skillvalue = (float)PP.getSkillLevel(SkillType.REPAIR);
|
||||||
String percentage = String.valueOf((skillvalue / 1000) * 100);
|
String percentage = String.valueOf((skillvalue / 1000) * 100);
|
||||||
String repairmastery = String.valueOf((skillvalue / 500) * 100);
|
String repairmastery = String.valueOf((skillvalue / 500) * 100);
|
||||||
player.sendMessage(mcLocale.getString("m.SkillHeader", new Object[] {mcLocale.getString("m.SkillRepair")}));
|
player.sendMessage(mcLocale.getString("m.SkillHeader", new Object[] {mcLocale.getString("m.SkillRepair")}));
|
||||||
player.sendMessage(mcLocale.getString("m.XPGain", new Object[] {mcLocale.getString("m.XPGainRepair")}));
|
player.sendMessage(mcLocale.getString("m.XPGain", new Object[] {mcLocale.getString("m.XPGainRepair")}));
|
||||||
if(mcPermissions.getInstance().repair(player))
|
if(mcPermissions.getInstance().repair(player))
|
||||||
player.sendMessage(mcLocale.getString("m.LVL", new Object[] {PP.getSkillXpLevel(SkillType.REPAIR), PP.getSkillLevel(SkillType.REPAIR), PP.getXpToLevel(SkillType.REPAIR)}));
|
player.sendMessage(mcLocale.getString("m.LVL", new Object[] {PP.getSkillLevel(SkillType.REPAIR), PP.getSkillXpLevel(SkillType.REPAIR), PP.getXpToLevel(SkillType.REPAIR)}));
|
||||||
player.sendMessage(mcLocale.getString("m.SkillHeader", new Object[] {mcLocale.getString("m.Effects")}));
|
player.sendMessage(mcLocale.getString("m.SkillHeader", new Object[] {mcLocale.getString("m.Effects")}));
|
||||||
player.sendMessage(mcLocale.getString("m.EffectsTemplate", new Object[] {mcLocale.getString("m.EffectsRepair1_0"), mcLocale.getString("m.EffectsRepair1_1")}));
|
player.sendMessage(mcLocale.getString("m.EffectsTemplate", new Object[] {mcLocale.getString("m.EffectsRepair1_0"), mcLocale.getString("m.EffectsRepair1_1")}));
|
||||||
player.sendMessage(mcLocale.getString("m.EffectsTemplate", new Object[] {mcLocale.getString("m.EffectsRepair2_0"), mcLocale.getString("m.EffectsRepair2_1")}));
|
player.sendMessage(mcLocale.getString("m.EffectsTemplate", new Object[] {mcLocale.getString("m.EffectsRepair2_0"), mcLocale.getString("m.EffectsRepair2_1")}));
|
||||||
@ -1117,7 +1117,7 @@ public class mcMMO extends JavaPlugin
|
|||||||
if(mcPermissions.getInstance().acrobatics(target))
|
if(mcPermissions.getInstance().acrobatics(target))
|
||||||
player.sendMessage(Skills.getSkillStats(mcLocale.getString("mcPlayerListener.AcrobaticsSkill"), PPt.getSkillLevel(SkillType.ACROBATICS), PPt.getSkillXpLevel(SkillType.ACROBATICS), PPt.getXpToLevel(SkillType.ACROBATICS)));
|
player.sendMessage(Skills.getSkillStats(mcLocale.getString("mcPlayerListener.AcrobaticsSkill"), PPt.getSkillLevel(SkillType.ACROBATICS), PPt.getSkillXpLevel(SkillType.ACROBATICS), PPt.getXpToLevel(SkillType.ACROBATICS)));
|
||||||
if(mcPermissions.getInstance().repair(target))
|
if(mcPermissions.getInstance().repair(target))
|
||||||
player.sendMessage(Skills.getSkillStats(mcLocale.getString("mcPlayerListener.RepairSkill"), PPt.getSkillXpLevel(SkillType.REPAIR), PPt.getSkillXpLevel(SkillType.REPAIR), PPt.getXpToLevel(SkillType.REPAIR)));
|
player.sendMessage(Skills.getSkillStats(mcLocale.getString("mcPlayerListener.RepairSkill"), PPt.getSkillLevel(SkillType.REPAIR), PPt.getSkillXpLevel(SkillType.REPAIR), PPt.getXpToLevel(SkillType.REPAIR)));
|
||||||
|
|
||||||
player.sendMessage(mcLocale.getString("mcPlayerListener.PowerLevel") +ChatColor.GREEN+(m.getPowerLevel(target)));
|
player.sendMessage(mcLocale.getString("mcPlayerListener.PowerLevel") +ChatColor.GREEN+(m.getPowerLevel(target)));
|
||||||
|
|
||||||
@ -1172,7 +1172,7 @@ public class mcMMO extends JavaPlugin
|
|||||||
if(mcPermissions.getInstance().acrobatics(player))
|
if(mcPermissions.getInstance().acrobatics(player))
|
||||||
player.sendMessage(Skills.getSkillStats(mcLocale.getString("mcPlayerListener.AcrobaticsSkill"), PP.getSkillLevel(SkillType.ACROBATICS), PP.getSkillXpLevel(SkillType.ACROBATICS), PP.getXpToLevel(SkillType.ACROBATICS)));
|
player.sendMessage(Skills.getSkillStats(mcLocale.getString("mcPlayerListener.AcrobaticsSkill"), PP.getSkillLevel(SkillType.ACROBATICS), PP.getSkillXpLevel(SkillType.ACROBATICS), PP.getXpToLevel(SkillType.ACROBATICS)));
|
||||||
if(mcPermissions.getInstance().repair(player))
|
if(mcPermissions.getInstance().repair(player))
|
||||||
player.sendMessage(Skills.getSkillStats(mcLocale.getString("mcPlayerListener.RepairSkill"), PP.getSkillXpLevel(SkillType.REPAIR), PP.getSkillXpLevel(SkillType.REPAIR), PP.getXpToLevel(SkillType.REPAIR)));
|
player.sendMessage(Skills.getSkillStats(mcLocale.getString("mcPlayerListener.RepairSkill"), PP.getSkillLevel(SkillType.REPAIR), PP.getSkillXpLevel(SkillType.REPAIR), PP.getXpToLevel(SkillType.REPAIR)));
|
||||||
}
|
}
|
||||||
player.sendMessage(mcLocale.getString("mcPlayerListener.PowerLevel")+ChatColor.GREEN+(m.getPowerLevel(player)));
|
player.sendMessage(mcLocale.getString("mcPlayerListener.PowerLevel")+ChatColor.GREEN+(m.getPowerLevel(player)));
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ public class Excavation
|
|||||||
PlayerProfile PP = Users.getProfile(player);
|
PlayerProfile PP = Users.getProfile(player);
|
||||||
ItemStack is = null;
|
ItemStack is = null;
|
||||||
Material mat = null;
|
Material mat = null;
|
||||||
if(data != (byte) 5)
|
if(data == (byte) 5)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(type == 2)
|
if(type == 2)
|
||||||
|
@ -476,7 +476,7 @@ public class Mining
|
|||||||
}
|
}
|
||||||
if(block.getData() != (byte) 5)
|
if(block.getData() != (byte) 5)
|
||||||
PP.addXP(SkillType.MINING, xp * LoadProperties.xpGainMultiplier);
|
PP.addXP(SkillType.MINING, xp * LoadProperties.xpGainMultiplier);
|
||||||
|
if(LoadProperties.contribEnabled)
|
||||||
contribStuff.playSoundForPlayer(SoundEffect.POP, player, block.getLocation());
|
contribStuff.playSoundForPlayer(SoundEffect.POP, player, block.getLocation());
|
||||||
|
|
||||||
Skills.XpCheckSkill(SkillType.MINING, player);
|
Skills.XpCheckSkill(SkillType.MINING, player);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: mcMMO
|
name: mcMMO
|
||||||
main: com.gmail.nossr50.mcMMO
|
main: com.gmail.nossr50.mcMMO
|
||||||
version: 1.0.43
|
version: 1.0.47
|
||||||
commands:
|
commands:
|
||||||
mcc:
|
mcc:
|
||||||
description: Lists mcMMO commands
|
description: Lists mcMMO commands
|
||||||
@ -91,7 +91,7 @@ permissions:
|
|||||||
default: op
|
default: op
|
||||||
description: mcmmo permissions that default to op
|
description: mcmmo permissions that default to op
|
||||||
children:
|
children:
|
||||||
mcmmo.admin: true
|
mcmmo.admin: false
|
||||||
mcmmo.tools.*: true
|
mcmmo.tools.*: true
|
||||||
mcmmo.chat.adminchat: true
|
mcmmo.chat.adminchat: true
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user