mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-11 13:33:54 +00:00
More v1.2 Fixes
This commit is contained in:
@ -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!");
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
@ -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");
|
||||
|
Reference in New Issue
Block a user