@FisheyLP Changed to public static boolean save(String path, String fileName) { File file = new File(path, fileName); try {...
@FisheyLP The method save(File file) is in the class of FileConfiguration. So far so good. But as I said, my code seems to not work, even though...
@FisheyLP the parameter "file" is of the variable type "File". I don't have this file though. I would have to get the path of the...
I have an object of the type FileConfiguration. I write things to it, get things from it, and I'm happy with it. But I also have to save it. How...
@1Rogue Whoops, I'm using the Bukkit API from a long time ago... March 2014 in fact. I'm using Spigot on my server though. Am I wrong or is the...
@1Rogue Sorry, can't find it... [IMG] EDIT: FYI, the cast is a (Object) cast, that can't be the solution. EDIT again: Maybe I use a different...
@1Rogue Thanks, but I'm afraid there's no such method getUniqueId() for the variable type OfflinePlayer. I've tried it with the following code...
So I'm sure this question has been asked like a thousand times. But I wasn't able to find a good answer to it. I'm currently working on a plugin...
@nverdier Looks like it does... I'll use it instead of HangingPlaceEvent then too, to avoid doubling... We'll see how it works out in future.
Tested it for item frames and paintings, that works. What about Armor Stands? Seems to be neither the BlockPlaceEvent nor the HangingPlaceEvent....
Hi there :3 So when I place an ItemFrame a Painting or something like that what's actually an entity instead of a block, it's no...
Hi there, I'm currently looking for a possibility to get the whole chunk a player stands in. I anticipated to be able to find a method in the...
@567legodude Thanks, although it does not really look like nice code, it works. ;) #Solved
@567legodude Okay, so I've tried it out. String reason = "§cYou have been banned."; @EventHandler public void onJoin(PlayerJoinEvent e) { if...
@567legodude Okay first, let me thank you for your quick answer <3 I've tried it with your PlayerJoinEvent now, but as I supposed earlier, when...
Hey there :3 So I'm currently working on a plugin that bans players in a special way. I won't add the players to a banlist so I can't let...
So I have two player variables for testing purposes. They represent my two Minecraft accounts. I want player1 to fly up to player2 when typing in...
Hey :3 I have an ArrayList with Players in it. Every Player who's in that ArrayList shall have a colored name in chat. So for testing I've...
DJSkepter First, thank you for your answer. I don't really know if i've got you correctly, so i've just made some experimental code: public...
Hey there! So I'm currently working with YAML-Files. In the project i'm coding, i need to rewrite the contents of those files very often...
Separate names with a comma.