mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
LMM Command
This commit is contained in:
parent
4f18f26935
commit
60bb232d2a
30
src/main/java/com/volmit/iris/command/CommandIrisLMM.java
Normal file
30
src/main/java/com/volmit/iris/command/CommandIrisLMM.java
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
package com.volmit.iris.command;
|
||||||
|
|
||||||
|
import com.volmit.iris.Iris;
|
||||||
|
import com.volmit.iris.util.MortarCommand;
|
||||||
|
import com.volmit.iris.util.MortarSender;
|
||||||
|
|
||||||
|
public class CommandIrisLMM extends MortarCommand
|
||||||
|
{
|
||||||
|
public CommandIrisLMM()
|
||||||
|
{
|
||||||
|
super("lmm");
|
||||||
|
setDescription("Toggle Low Memory Mode");
|
||||||
|
requiresPermission(Iris.perm.studio);
|
||||||
|
setCategory("World");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean handle(MortarSender sender, String[] args)
|
||||||
|
{
|
||||||
|
Iris.lowMemoryMode = !Iris.lowMemoryMode;
|
||||||
|
sender.sendMessage("Low Memory Mode is " + (Iris.lowMemoryMode ? "On" : "Off"));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getArgsUsage()
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user