They aren't :/ that's why I'm confused. So I just found out that it isn't working because when I get an offlineplayer that doesn't exist it...
No, none at all. Otherwise i would figure it out :). I don't use any try-catch statements and that's why I'm confused.
Alright guys, I've used scoreboards before but I've just run into an error and i have no clue why. My code: public static HashMap<Player,...
Hello everyone, I have been currently writing a combat log plugin and it has a feature so that donors cannot fly when they are within 10 blocks...
Hello all, today I have two problems with scoreboards. I am fairly decent with scoreboards but cannot seem to stump these two bugs. First: here's...
Hi all, i have this code, its for my MYSQL: @SuppressWarnings("deprecation") public synchronized static boolean playerDataContainsPlayer(final...
instead of using "public void" use "public static void" for your methods. To use it from another class use YourClassName.methodName();
Use the event @EventHandler public void onEntityInteractEntity(PlayerInteractEntityEvent e) { if(e.getRightClicked() instanceof...
if(p.getCurrentItem().getType().equals(Material.GOLDEN_APPLES) && p.getCurrentItem().getDurability() == 1)
You won't be able to do this that easy... You need 2 events: HashMap<Player,UUID> gullyegg = new HashMap<Player,UUID>(); @EventHandler public...
Use... Objective sb = yourScoreboardsObjective; int score = sb.getScore(Bukkit.getOfflinePlayer(ThePlayer'sScoreYouAreGetting)).getScore();
This is how your YAML should be formatted: name: RealmzEssentials main: com.removed.RealmzEssentials version: 1.0 ##You forgot this line, the...
Why do you need multiverse for this? This already works in all worlds...
In your main class put: public static Plugin plugin; public void onEnable() { plugin = this; } and then to get the config in your...
Put this at the top of your main plugin public static Plugin plugin; public void onEnable() { plugin = this; } then... In your other class...
mazentheamazin, use PlayerChatTabCompleteEvent
PatoTheBest Gawd... Why u do this to me. xD
Use getConfig().set(p.getName(), someValueThatYouWantToGiveThem);
First of all, can you show us the error? Second of all, a way of getting the config file would be to add it to your build path. Like when you...
If it's a null pointer exception, it means that the variable you are trying to get doesn't exist... So make sure that the value actually equals...
Separate names with a comma.