Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. package com.hadesdc.JailTimeLB.commands;
  2.  
  3. import com.vk2gpz.tokenenchant.TokenEnchant;
  4. import org.mineacademy.fo.Common;
  5. import org.mineacademy.fo.command.SimpleCommand;
  6.  
  7. public class LB1Random extends SimpleCommand {
  8. public LB1Random() {
  9. super("lb1random|lbadmint1");
  10. setPermission("JailtimeLB.Admin");
  11. setPermissionMessage("&cYou do not have permission to run this command");
  12. }
  13. public static int getRandom(int max) {
  14. return (int) (Math.random() * max);
  15. }
  16. TokenEnchant te = TokenEnchant.getInstance();
  17.  
  18.  
  19. @Override
  20. protected void onCommand() {
  21. te.addTokens(getPlayer(), 100);
  22.  
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement