Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.hadesdc.JailTimeLB.commands;
- import com.vk2gpz.tokenenchant.TokenEnchant;
- import org.mineacademy.fo.Common;
- import org.mineacademy.fo.command.SimpleCommand;
- public class LB1Random extends SimpleCommand {
- public LB1Random() {
- super("lb1random|lbadmint1");
- setPermission("JailtimeLB.Admin");
- setPermissionMessage("&cYou do not have permission to run this command");
- }
- public static int getRandom(int max) {
- return (int) (Math.random() * max);
- }
- TokenEnchant te = TokenEnchant.getInstance();
- @Override
- protected void onCommand() {
- te.addTokens(getPlayer(), 100);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement