Hello, i have a plugin that let players see a worldborder. I also want to let players to be able to remove the worldborder with a command. But i...
Can anyone please help me? I don't know how to make it :(
Hello, i am making a skyblock plugin. I would have that when you create a island, its going to be in a square. I know you don't understand what i...
I have found it thank you. This is what i needed to do: [SPOILER] But one question. There is no simpeler way to do this? @timtower Can you...
I don't know. See the error in the message i send before
Then i says again that the File is null [SPOILER]
How do i get the getDataFolder then?
Oh maybe you can explain why this is not working? private Main main; public ConfigurationManager(Main main) { this.main = main;...
I putted it in the ConfigurationManager. But i thought i could paste it.
This is the error on "this.main = main": main cannot be resolved or is not a field And this is the error on "this.Test = new File(this.Test,...
It doesn't work. It gives me errors in this whole thing :/
Which contructor? @timtower Can you give me a example? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Already 2 years but i learned it out of my self so i don't know the tips and tricks in Java @timtower i only need the getDataFolder in the...
You mean like this: Main main = new Main();? in the ConfigurationManager class
@timtower I have now created this: File dataFolder = ((Main)Bukkit.getPluginManager().getPlugin("Test")).getDataFolder(); And that works. But is...
And how do i do that?
Doesn't work i get this error in the console: [SPOILER] This is line 15 of ConfigurationManager class: public File Test = new...
But then i can't get the Main class instance in the ConfigurationManager
It gives me a error at: return this; Error: Cannot use this in a static context
I want a custom config in a diffrent class then the Main class for a organized Main class
Separate names with a comma.