mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Added Multiverse shortcuts.
This commit is contained in:
parent
7ea371e59d
commit
473ed35e19
@ -26,11 +26,11 @@ dist.jar=${dist.dir}/TotalFreedomMod.jar
|
|||||||
dist.javadoc.dir=${dist.dir}/javadoc
|
dist.javadoc.dir=${dist.dir}/javadoc
|
||||||
endorsed.classpath=
|
endorsed.classpath=
|
||||||
excludes=
|
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=**
|
includes=**
|
||||||
jar.compress=false
|
jar.compress=false
|
||||||
javac.classpath=\
|
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
|
# Space-separated list of extra javac options
|
||||||
javac.compilerargs=
|
javac.compilerargs=
|
||||||
javac.deprecation=false
|
javac.deprecation=false
|
||||||
|
@ -233,6 +233,16 @@ public class TFM_Cmds_General implements CommandExecutor
|
|||||||
|
|
||||||
return true;
|
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)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -167,6 +167,59 @@ class TFM_PlayerListener extends PlayerListener
|
|||||||
{
|
{
|
||||||
block_command = true;
|
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)
|
if (block_command)
|
||||||
{
|
{
|
||||||
|
@ -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] - 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 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") + ".");
|
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("radar").setExecutor(GeneralCommands);
|
||||||
this.getCommand("mp").setExecutor(GeneralCommands);
|
this.getCommand("mp").setExecutor(GeneralCommands);
|
||||||
this.getCommand("rd").setExecutor(GeneralCommands);
|
this.getCommand("rd").setExecutor(GeneralCommands);
|
||||||
|
this.getCommand("flatlands").setExecutor(GeneralCommands);
|
||||||
|
this.getCommand("skylands").setExecutor(GeneralCommands);
|
||||||
|
|
||||||
this.getCommand("fr").setExecutor(AdminCommands);
|
this.getCommand("fr").setExecutor(AdminCommands);
|
||||||
this.getCommand("gtfo").setExecutor(AdminCommands);
|
this.getCommand("gtfo").setExecutor(AdminCommands);
|
||||||
|
@ -22,6 +22,9 @@ commands:
|
|||||||
firespread:
|
firespread:
|
||||||
description: Superadmin command - Enable/disable fire spread.
|
description: Superadmin command - Enable/disable fire spread.
|
||||||
usage: /<command> <on|off>
|
usage: /<command> <on|off>
|
||||||
|
flatlands:
|
||||||
|
description: Goto the flatlands.
|
||||||
|
usage: /<command>
|
||||||
fr:
|
fr:
|
||||||
description: Superadmin command - Freeze all players (toggles on and off).
|
description: Superadmin command - Freeze all players (toggles on and off).
|
||||||
usage: /<command>
|
usage: /<command>
|
||||||
@ -73,6 +76,9 @@ commands:
|
|||||||
say:
|
say:
|
||||||
description: Broadcasts the given message as the console, includes sender.
|
description: Broadcasts the given message as the console, includes sender.
|
||||||
usage: /<command> <message>
|
usage: /<command> <message>
|
||||||
|
skylands:
|
||||||
|
description: Goto the skylands.
|
||||||
|
usage: /<command>
|
||||||
status:
|
status:
|
||||||
description: Show random server info.
|
description: Show random server info.
|
||||||
usage: /<command>
|
usage: /<command>
|
||||||
|
Loading…
Reference in New Issue
Block a user