mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Fixed toggle message for /toggle fluidspread.
This commit is contained in:
parent
173b686658
commit
cc3a183cac
@ -9,7 +9,6 @@ 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;
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
import org.bukkit.plugin.PluginManager;
|
|
||||||
|
|
||||||
@CommandPermissions(level = AdminLevel.SUPER, source = SourceType.BOTH)
|
@CommandPermissions(level = AdminLevel.SUPER, source = SourceType.BOTH)
|
||||||
@CommandParameters(description = "Toggles TotalFreedomMod settings", usage = "/<command> [option] [value] [value]")
|
@CommandParameters(description = "Toggles TotalFreedomMod settings", usage = "/<command> [option] [value] [value]")
|
||||||
@ -57,7 +56,7 @@ public class Command_toggle extends TFM_Command
|
|||||||
|
|
||||||
if (args[0].equals("fluidspread"))
|
if (args[0].equals("fluidspread"))
|
||||||
{
|
{
|
||||||
toggle("Fire placement is", TFM_ConfigEntry.ALLOW_FLUID_SPREAD);
|
toggle("Fluid spread is", TFM_ConfigEntry.ALLOW_FLUID_SPREAD);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,7 +147,6 @@ public class Command_toggle extends TFM_Command
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
toggle("Explosions are", TFM_ConfigEntry.ALLOW_EXPLOSIONS);
|
toggle("Explosions are", TFM_ConfigEntry.ALLOW_EXPLOSIONS);
|
||||||
|
|
||||||
if (TFM_ConfigEntry.ALLOW_EXPLOSIONS.getBoolean())
|
if (TFM_ConfigEntry.ALLOW_EXPLOSIONS.getBoolean())
|
||||||
@ -170,7 +168,6 @@ public class Command_toggle extends TFM_Command
|
|||||||
boolean enabled = disguiseCraft.isEnabled();
|
boolean enabled = disguiseCraft.isEnabled();
|
||||||
TFM_Util.adminAction(sender.getName(), (enabled ? "disa" : "ena") + "bling DisguiseCraft", true);
|
TFM_Util.adminAction(sender.getName(), (enabled ? "disa" : "ena") + "bling DisguiseCraft", true);
|
||||||
|
|
||||||
|
|
||||||
if (enabled)
|
if (enabled)
|
||||||
{
|
{
|
||||||
plugin.getServer().getPluginManager().disablePlugin(disguiseCraft);
|
plugin.getServer().getPluginManager().disablePlugin(disguiseCraft);
|
||||||
|
Loading…
Reference in New Issue
Block a user