mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
More v1.2 Fixes
This commit is contained in:
parent
6e2cbc8e9f
commit
8a88eaea4d
@ -31,7 +31,7 @@ jar.compress=false
|
|||||||
javac.classpath=\
|
javac.classpath=\
|
||||||
${libs.Bukkit.classpath}
|
${libs.Bukkit.classpath}
|
||||||
# Space-separated list of extra javac options
|
# Space-separated list of extra javac options
|
||||||
javac.compilerargs=-Xlint:unchecked
|
javac.compilerargs=-Xlint:unchecked -Xlint:deprecation
|
||||||
javac.deprecation=false
|
javac.deprecation=false
|
||||||
javac.processorpath=\
|
javac.processorpath=\
|
||||||
${javac.classpath}
|
${javac.classpath}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Total Freedom Mod v2.0 Configuration
|
# Total Freedom Mod v2.4 Configuration
|
||||||
# by Madgeek1450
|
# by Madgeek1450
|
||||||
|
|
||||||
# Block placement prevention:
|
# Block placement prevention:
|
||||||
|
@ -6,7 +6,7 @@ import org.bukkit.command.Command;
|
|||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
public class Command_setexp extends TFM_Command
|
public class Command_levelup extends TFM_Command
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public boolean run(CommandSender sender, Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
|
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;
|
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_p.setExp(1.0f);
|
||||||
|
|
||||||
sender.sendMessage(ChatColor.AQUA + "Level up!");
|
sender.sendMessage(ChatColor.AQUA + "Level up!");
|
@ -297,7 +297,7 @@ public class TFM_UserInfo
|
|||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
{
|
{
|
||||||
Arrow shot_arrow = _player.shootArrow();
|
Arrow shot_arrow = _player.launchProjectile(Arrow.class);
|
||||||
shot_arrow.setVelocity(shot_arrow.getVelocity().multiply(2.0));
|
shot_arrow.setVelocity(shot_arrow.getVelocity().multiply(2.0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,27 +43,30 @@ public class TFM_Util
|
|||||||
|
|
||||||
static
|
static
|
||||||
{
|
{
|
||||||
|
mobtypes.put("blaze", EntityType.BLAZE);
|
||||||
|
mobtypes.put("cavespider", EntityType.CAVE_SPIDER);
|
||||||
mobtypes.put("chicken", EntityType.CHICKEN);
|
mobtypes.put("chicken", EntityType.CHICKEN);
|
||||||
mobtypes.put("cow", EntityType.COW);
|
mobtypes.put("cow", EntityType.COW);
|
||||||
mobtypes.put("creeper", EntityType.CREEPER);
|
mobtypes.put("creeper", EntityType.CREEPER);
|
||||||
|
mobtypes.put("enderdragon", EntityType.ENDER_DRAGON);
|
||||||
|
mobtypes.put("enderman", EntityType.ENDERMAN);
|
||||||
mobtypes.put("ghast", EntityType.GHAST);
|
mobtypes.put("ghast", EntityType.GHAST);
|
||||||
mobtypes.put("giant", EntityType.GIANT);
|
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("pig", EntityType.PIG);
|
||||||
mobtypes.put("pigzombie", EntityType.PIG_ZOMBIE);
|
mobtypes.put("pigzombie", EntityType.PIG_ZOMBIE);
|
||||||
mobtypes.put("sheep", EntityType.SHEEP);
|
mobtypes.put("sheep", EntityType.SHEEP);
|
||||||
|
mobtypes.put("silverfish", EntityType.SILVERFISH);
|
||||||
mobtypes.put("skeleton", EntityType.SKELETON);
|
mobtypes.put("skeleton", EntityType.SKELETON);
|
||||||
mobtypes.put("slime", EntityType.SLIME);
|
mobtypes.put("slime", EntityType.SLIME);
|
||||||
|
mobtypes.put("snowman", EntityType.SNOWMAN);
|
||||||
mobtypes.put("spider", EntityType.SPIDER);
|
mobtypes.put("spider", EntityType.SPIDER);
|
||||||
mobtypes.put("squid", EntityType.SQUID);
|
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("villager", EntityType.VILLAGER);
|
||||||
mobtypes.put("blaze", EntityType.BLAZE);
|
mobtypes.put("wolf", EntityType.WOLF);
|
||||||
mobtypes.put("mushroomcow", EntityType.MUSHROOM_COW);
|
mobtypes.put("zombie", EntityType.ZOMBIE);
|
||||||
|
|
||||||
stop_commands.add("stop");
|
stop_commands.add("stop");
|
||||||
stop_commands.add("off");
|
stop_commands.add("off");
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: TotalFreedomMod
|
name: TotalFreedomMod
|
||||||
main: me.StevenLawson.TotalFreedomMod.TotalFreedomMod
|
main: me.StevenLawson.TotalFreedomMod.TotalFreedomMod
|
||||||
version: 2.3
|
version: 2.4
|
||||||
description: Plugin for the Total Freedom server.
|
description: Plugin for the Total Freedom server.
|
||||||
author: StevenLawson / Madgeek1450
|
author: StevenLawson / Madgeek1450
|
||||||
commands:
|
commands:
|
||||||
@ -70,6 +70,9 @@ commands:
|
|||||||
lavaplace:
|
lavaplace:
|
||||||
description: Superadmin command - Enable/disable lava placement.
|
description: Superadmin command - Enable/disable lava placement.
|
||||||
usage: /<command> <on | off>
|
usage: /<command> <on | off>
|
||||||
|
levelup:
|
||||||
|
description: Level up!
|
||||||
|
usage: /<command>
|
||||||
list:
|
list:
|
||||||
description: Lists the real names of all online players.
|
description: Lists the real names of all online players.
|
||||||
usage: /<command>
|
usage: /<command>
|
||||||
@ -124,9 +127,6 @@ commands:
|
|||||||
setspawnworld:
|
setspawnworld:
|
||||||
description: Superadmin Command - Set world spawnpoint.
|
description: Superadmin Command - Set world spawnpoint.
|
||||||
usage: /<command>
|
usage: /<command>
|
||||||
# setexp:
|
|
||||||
# description: Sets how many expierence points you have (this is not the same as your "level").
|
|
||||||
# usage: /<command> <value>
|
|
||||||
ender:
|
ender:
|
||||||
description: Goto the ender / "The End".
|
description: Goto the ender / "The End".
|
||||||
usage: /<command>
|
usage: /<command>
|
||||||
|
Loading…
Reference in New Issue
Block a user