Added Multiverse shortcuts.

This commit is contained in:
Steven Lawson 2011-10-02 21:50:04 -04:00
parent 7ea371e59d
commit 473ed35e19
5 changed files with 74 additions and 3 deletions

View file

@ -26,11 +26,11 @@ dist.jar=${dist.dir}/TotalFreedomMod.jar
dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=
file.reference.bukkit-0.0.1-SNAPSHOT.jar-2=C:\\github\\Bukkit\\target\\bukkit-0.0.1-SNAPSHOT.jar
file.reference.bukkit-0.0.1-SNAPSHOT.jar=C:\\github\\Bukkit\\target\\bukkit-0.0.1-SNAPSHOT.jar
includes=**
jar.compress=false
javac.classpath=\
${file.reference.bukkit-0.0.1-SNAPSHOT.jar-2}
${file.reference.bukkit-0.0.1-SNAPSHOT.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false

View file

@ -233,6 +233,16 @@ public class TFM_Cmds_General implements CommandExecutor
return true;
}
else if (cmd.getName().equalsIgnoreCase("flatlands"))
{
Bukkit.getServer().dispatchCommand(sender, "mv tp flatlands");
return true;
}
else if (cmd.getName().equalsIgnoreCase("skylands"))
{
Bukkit.getServer().dispatchCommand(sender, "mv tp skylands");
return true;
}
}
catch (Exception ex)
{

View file

@ -167,6 +167,59 @@ class TFM_PlayerListener extends PlayerListener
{
block_command = true;
}
else if (command.matches("^/myballsareonfire"))
{
block_command = true;
}
else if (command.matches("^/mv\\s?create"))
{
if (!plugin.isUserSuperadmin(player))
{
block_command = true;
}
}
else if (command.matches("^/mv\\s?import"))
{
if (!plugin.isUserSuperadmin(player))
{
block_command = true;
}
}
else if (command.matches("^/mv\\s?unload"))
{
if (!plugin.isUserSuperadmin(player))
{
block_command = true;
}
}
else if (command.matches("^/mv\\s?remove"))
{
if (!plugin.isUserSuperadmin(player))
{
block_command = true;
}
}
else if (command.matches("^/mv\\s?delete"))
{
if (!plugin.isUserSuperadmin(player))
{
block_command = true;
}
}
else if (command.matches("^/mv\\s?confirm"))
{
if (!plugin.isUserSuperadmin(player))
{
block_command = true;
}
}
else if (command.matches("^/mv\\s?modify"))
{
if (!plugin.isUserSuperadmin(player))
{
block_command = true;
}
}
if (block_command)
{

View file

@ -81,7 +81,7 @@ public class TotalFreedomMod extends JavaPlugin
log.log(Level.INFO, "[Total Freedom Mod] - Enabled! - Version: " + this.getDescription().getVersion() + " by Madgeek1450");
log.log(Level.INFO, "[Total Freedom Mod] - Loaded superadmin names: " + implodeStringList(", ", superadmins));
log.log(Level.INFO, "[Total Freedom Mod] - Loaded superadmin IPs: " + implodeStringList(", ", superadmins));
log.log(Level.INFO, "[Total Freedom Mod] - Loaded superadmin IPs: " + implodeStringList(", ", superadmin_ips));
log.log(Level.INFO, "[Total Freedom Mod] - Auto drop deleter is " + (autoEntityWipe ? "enabled" : "disabled") + ".");
}
@ -290,6 +290,8 @@ public class TotalFreedomMod extends JavaPlugin
this.getCommand("radar").setExecutor(GeneralCommands);
this.getCommand("mp").setExecutor(GeneralCommands);
this.getCommand("rd").setExecutor(GeneralCommands);
this.getCommand("flatlands").setExecutor(GeneralCommands);
this.getCommand("skylands").setExecutor(GeneralCommands);
this.getCommand("fr").setExecutor(AdminCommands);
this.getCommand("gtfo").setExecutor(AdminCommands);

View file

@ -22,6 +22,9 @@ commands:
firespread:
description: Superadmin command - Enable/disable fire spread.
usage: /<command> <on|off>
flatlands:
description: Goto the flatlands.
usage: /<command>
fr:
description: Superadmin command - Freeze all players (toggles on and off).
usage: /<command>
@ -73,6 +76,9 @@ commands:
say:
description: Broadcasts the given message as the console, includes sender.
usage: /<command> <message>
skylands:
description: Goto the skylands.
usage: /<command>
status:
description: Show random server info.
usage: /<command>