`getBlockAt(int, int, int)` gets the block using absolute points. You need to get the block relative to the player using `getRelative(int, int,...
CdoingBaddie Your logic is flawed. You're cancelling the command if they're not in admin mode. Don't forget to check whether the command is...
waxman57 'arenas' hasn't been initialised
Alternatively, you could negate 'bukkit.command.plugins' and 'bukkit.command.help'. Source
PHILLIPS_71 Think about where you have it, and where it should be...
PHILLIPS_71 You aren't updating the player's old chunk. oldChunk.put(player.getName(), new Integer[] {chunk.getX(), chunk.getZ()});
You haven't registered the events
Thanks mate, hopefully it'll get fixed soon...
Hey, So subscribed notifications work well and all, but I'm receiving emails when I comment on things I'm subscribed to - replying to tickets...
PHILLIPS_71 Oh I see it now, your class is called Chunk.
PHILLIPS_71 Are you importing Bukkit's chunk or Minecraft's chunk?
PHILLIPS_71 I'm using the config file to store the chunk names instead of a map. public boolean onCommand(...) { // TODO: pre-command...
euller12 for(int i = 0; i < 9; i++) { ItemStack item = player.getInventory().getItem(i); if(item == null) continue; // Do something...
PHILLIPS_71 You can do what you want with a yaml file looking like this.. x;z: chunkName x;z: anotherChunkName alongside this event...
WhatAaCow You're adding the value of add() to the config, not the list itself :S
http://wiki.vg/Protocol
ice374 StringBuilder players = new StringBuilder(); for(Player p : getServer().getOnlinePlayers()) players.append(p.getName()).append(", ");
unforgiven5232 No. Move 'chunk' to the class, out of the method.
unforgiven5232 Give the variable to the class then :) Here's a run down of the variable scope. It's not Java, but the concept still applies...
unforgiven5232 Put it in the scope of the Runnable. Does it need to be outside?
Separate names with a comma.