mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-11 21:43:54 +00:00
Added Multiverse shortcuts.
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user