October 2014
Beginner to intermediate
285 pages
6h 24m
English
Is your head full yet? I hope not, because you have a few fun things left to learn. In this chapter we’ll add these abilities to your toolbox:
Use local variables that exist only within a block
Use class-level global variables that can be accessed from anywhere in the class
Keep piles of data in arrays
Now that we can create a plugin command to do something, we need to take a look at how to remember stuff—in other words, how to better use Java variables to keep track of values. We’ll see when to use which kind of variable and how to work with piles of data in different ways (things like lists of Player objects), and we’ll build a couple of cool plugins along the way.
Read now
Unlock full access