Drkmaster83
Last Activity:
Oct 9, 2019
Joined:
Sep 6, 2012
Messages:
930
Likes Received:
89
Trophy Points:
0
Gender:
Male
Location:
Rockwall, Texas
Occupation:
Student

Share This Page

Drkmaster83

Member, Male, from Rockwall, Texas

Building a plugin on BukkitDev... Long Live Bukkit! :D Sep 6, 2012

Drkmaster83 was last seen:
Oct 9, 2019
    1. Drkmaster83
      Drkmaster83
      Building a plugin on BukkitDev... Long Live Bukkit! :D
  • Loading...
  • Loading...
  • About

    Gender:
    Male
    Location:
    Rockwall, Texas
    Occupation:
    Student
    I am in High School and work as a Student/Seasonal Recreational Referee for soccer (or for you Europeans, "football").

    Interact

    Signature

    For all who are worried about people stealing your code, worry not! Everyone on Bukkit should recognize Intellectual Property.
    Saving a Player's instance to a List/Map/Set should be done cautiously
    Saving a Player's instance can cause memory leaks if not removed properly. The problem with memory leaks is that they prevent Java's garbage collection from releasing valuable RAM. You can prevent these memory leaks by making sure you remove the Player's instance from the list/map/set after you're done using it. The Player's various NBT and data entries are saved alongside the Player's instance and kept, even if Minecraft attempts to save it and unload it to release RAM. Saving the Player's instance can also keep their portion of the world loaded (with all their chunks, entities, et cetera).