Default page ArgSetting

This commit is contained in:
Magnus Ulf 2015-05-07 14:58:50 +02:00 committed by Olof Larsson
parent d7fcef6c3d
commit 9c49986774

View File

@ -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");
}
}