You have to use an Expression for this purpose (use SimpleExpression, with the pattern "myVar") and override its acceptChange and change methods....
So basically you want something like this? ItemStack[] items = {some random items}; Random r = new Random(); /** * @return a random item stack...
What do you actually want to achieve with your code?
I suggest to remove the superfluous spaces from langConfig.yml. In most text editors you can simply highlight the lines and press shift+tab to do so.
http://minecraft.gamepedia.com/Data_values#Golden_Apple
You forgot .getType() after location.getBlock() - You're currently comparing a block to a Material. BTW: you can simply use...
You can just send the data in a different thread than the main server thread (e.g. an async Bukkit task). This will not slow down the server more...
Use ChatColor, not Color.
You likely need to use "connection.prepareStatement(query)". prepare() is a method of SQLibrary which I use in my plugin.
Take a look at ItemStack's serialize() method: public Map<String, Object> serialize() { Map<String, Object> result = new LinkedHashMap<String,...
I recommend to change your save queries to a single one, and to use a PreparedStatement: // put this where you connect to the database //replace...
I currently use "Started" for fixed issues, and change it to "Fixed" to close the ticket when the fix is released to the public. It's not perfect...
Any update on this?
After some more testing I have been able to make Skript work again by removing ExprLocation. I guess that Skript tries to parse every location as...
Parsing is done for each line independently with Statement.parse(String) which calls SkriptParser's general parse() method with an iterator of all...
I though that the console would be spammed with complete nonsense but it actually resulted in nice patterns: grow tree of type argument 1 at...
The code doesn't stop anywhere, it's caught in an infinite loop (or something similar as I haven't found any infinite loops) while parsing any of...
Well I can already produce stack traces while the code is running with Java's VisualVM so I don't see the need for such a variable here ;)
Hello, Thank you for visiting my thread. Today's special is a hang-up in my code, served with a few headaches =P </joke> I have been trying to...
Empty slots in an inventory are null, i.e. i.getType() throws the NPE. Add 'i != null &&' infront of it to prevent the error.
Separate names with a comma.