Default page ArgSetting

This commit is contained in:
Magnus Ulf authored and Olof Larsson committed 2015-05-08 09:13:50 +02:00
1 parent d7fcef6c3d
commit 9c49986774
1 file changed
+12
@@ -4,6 +4,7 @@ import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.massivecraft.massivecore.cmd.arg.AR;
import com.massivecraft.massivecore.cmd.arg.ARInteger;
public class ArgSetting
{
@@ -101,4 +102,15 @@ public class ArgSetting
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");
}
}