RandomChests

Discussion in 'Archived: Plugin Requests' started by imMrStamper, Jul 13, 2014.

  1. Offline

    _Filip

    zombiekiller753 If you expect the variable name to change then your way is probably better.
    Fortunately for you, it is unlikely that it is going to change.




    I tested how much time a reflection call takes just now.
    With this code:
    Code:java
    1. long start = System.currentTimeMillis();
    2. for (int x = 0; x < 10000; x++)
    3. NMSandOBC.getNMSClass("EntityPlayer");
    4. long end = System.currentTimeMillis();
    5. System.out.println(end - start);

    I got 23 milliseconds.
     
  2. zombiekiller753
    Could you make it so you can make a item of having a chance of spawning in the chest so it's not the same item everytime
     
  3. Offline

    Deleted user

    Sil3nt_Aassassin
    You mean, like %?

    Because currently, it picks x random items out of the contents list. 'x' is configured as max-unique-items, so if you set max-unique-items to 5, and you have 10 items, you're gonna get some randomness
     
  4. Can you make it capable with bossmessage so it could say "The Current lootedchest is at [%x, %y, %z]

    zombiekiller753 Also can you make it compatitable with spigot

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  5. Offline

    timtower Administrator Administrator Moderator

    Sil3nt_Aassassin likes this.

Share This Page