More v1.2 Fixes

This commit is contained in:
Steven Lawson 2012-03-03 15:48:41 -05:00
parent 6e2cbc8e9f
commit 8a88eaea4d
6 changed files with 19 additions and 49 deletions

View File

@ -31,7 +31,7 @@ jar.compress=false
javac.classpath=\
${libs.Bukkit.classpath}
# Space-separated list of extra javac options
javac.compilerargs=-Xlint:unchecked
javac.compilerargs=-Xlint:unchecked -Xlint:deprecation
javac.deprecation=false
javac.processorpath=\
${javac.classpath}

View File

@ -1,4 +1,4 @@
# Total Freedom Mod v2.0 Configuration
# Total Freedom Mod v2.4 Configuration
# by Madgeek1450
# Block placement prevention:

View File

@ -6,7 +6,7 @@ import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class Command_setexp extends TFM_Command
public class Command_levelup extends TFM_Command
{
@Override
public boolean run(CommandSender sender, Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
@ -23,39 +23,6 @@ public class Command_setexp extends TFM_Command
return true;
}
/*
if (args.length != 1)
{
return false;
}
int exp_amount;
try
{
exp_amount = Integer.parseInt(args[0]);
if (exp_amount < 0)
{
exp_amount = 0;
}
else if (exp_amount > (int) Short.MAX_VALUE)
{
exp_amount = (int) Short.MAX_VALUE;
}
}
catch (NumberFormatException ex)
{
sender.sendMessage(ChatColor.RED + "Invalid exp amount.");
return true;
}
sender_p.setExperience(exp_amount);
sender.sendMessage(ChatColor.AQUA + "Experience points set to: " + sender_p.getExperience());
*/
sender_p.setExp(1.0f);
sender.sendMessage(ChatColor.AQUA + "Level up!");

View File

@ -297,7 +297,7 @@ public class TFM_UserInfo
@Override
public void run()
{
Arrow shot_arrow = _player.shootArrow();
Arrow shot_arrow = _player.launchProjectile(Arrow.class);
shot_arrow.setVelocity(shot_arrow.getVelocity().multiply(2.0));
}
}

View File

@ -43,27 +43,30 @@ public class TFM_Util
static
{
mobtypes.put("blaze", EntityType.BLAZE);
mobtypes.put("cavespider", EntityType.CAVE_SPIDER);
mobtypes.put("chicken", EntityType.CHICKEN);
mobtypes.put("cow", EntityType.COW);
mobtypes.put("creeper", EntityType.CREEPER);
mobtypes.put("enderdragon", EntityType.ENDER_DRAGON);
mobtypes.put("enderman", EntityType.ENDERMAN);
mobtypes.put("ghast", EntityType.GHAST);
mobtypes.put("giant", EntityType.GIANT);
mobtypes.put("irongolem", EntityType.IRON_GOLEM);
mobtypes.put("mushroomcow", EntityType.MUSHROOM_COW);
mobtypes.put("ocelot", EntityType.OCELOT);
mobtypes.put("pig", EntityType.PIG);
mobtypes.put("pigzombie", EntityType.PIG_ZOMBIE);
mobtypes.put("sheep", EntityType.SHEEP);
mobtypes.put("silverfish", EntityType.SILVERFISH);
mobtypes.put("skeleton", EntityType.SKELETON);
mobtypes.put("slime", EntityType.SLIME);
mobtypes.put("snowman", EntityType.SNOWMAN);
mobtypes.put("spider", EntityType.SPIDER);
mobtypes.put("squid", EntityType.SQUID);
mobtypes.put("zombie", EntityType.ZOMBIE);
mobtypes.put("wolf", EntityType.WOLF);
mobtypes.put("cavespider", EntityType.CAVE_SPIDER);
mobtypes.put("enderman", EntityType.ENDERMAN);
mobtypes.put("silverfish", EntityType.SILVERFISH);
mobtypes.put("enderdragon", EntityType.ENDER_DRAGON);
mobtypes.put("villager", EntityType.VILLAGER);
mobtypes.put("blaze", EntityType.BLAZE);
mobtypes.put("mushroomcow", EntityType.MUSHROOM_COW);
mobtypes.put("wolf", EntityType.WOLF);
mobtypes.put("zombie", EntityType.ZOMBIE);
stop_commands.add("stop");
stop_commands.add("off");

View File

@ -1,6 +1,6 @@
name: TotalFreedomMod
main: me.StevenLawson.TotalFreedomMod.TotalFreedomMod
version: 2.3
version: 2.4
description: Plugin for the Total Freedom server.
author: StevenLawson / Madgeek1450
commands:
@ -70,6 +70,9 @@ commands:
lavaplace:
description: Superadmin command - Enable/disable lava placement.
usage: /<command> <on | off>
levelup:
description: Level up!
usage: /<command>
list:
description: Lists the real names of all online players.
usage: /<command>
@ -124,9 +127,6 @@ commands:
setspawnworld:
description: Superadmin Command - Set world spawnpoint.
usage: /<command>
# setexp:
# description: Sets how many expierence points you have (this is not the same as your "level").
# usage: /<command> <value>
ender:
description: Goto the ender / "The End".
usage: /<command>