Default page ArgSetting
This commit is contained in:
parent
d7fcef6c3d
commit
9c49986774
@ -4,6 +4,7 @@ import org.bukkit.command.CommandSender;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.massivecraft.massivecore.cmd.arg.AR;
|
import com.massivecraft.massivecore.cmd.arg.AR;
|
||||||
|
import com.massivecraft.massivecore.cmd.arg.ARInteger;
|
||||||
|
|
||||||
public class ArgSetting
|
public class ArgSetting
|
||||||
{
|
{
|
||||||
@ -101,4 +102,15 @@ public class ArgSetting
|
|||||||
return "[" + this.getName() + def + "]";
|
return "[" + this.getName() + def + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------- //
|
||||||
|
// COMMONLY USED ARG SETTINGS
|
||||||
|
// -------------------------------------------- //
|
||||||
|
|
||||||
|
public static ArgSetting getPager()
|
||||||
|
{
|
||||||
|
// We can't use a singletone, because people might
|
||||||
|
// want to set a description.
|
||||||
|
return ArgSetting.of(ARInteger.get(), false, "page", "1");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user