NicMcPhee/CraftBukkit — pull request #8 by mart2967 (2014-05-01 01:48:53+00:00)
Title: Potion effect type refactor

Converted a large switch statement for getting string names based on int ids into a hashmap. This is only instantiated once the method is called for the first time. It is then a field of the class, allowing for quick execution of the simplified code. Total lines of code reduced and uniqueness increased.