Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public void action() {
  2. InvItem random = new InvItem(DataConversions.random(77, 85));
  3. if(DataConversions.random(0, 1) == 1) {
  4. owner.getActionSender().sendMessage("You got a" + random.getDef().getName() + "!");
  5. owner.getInventory().add(random);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement