For the config, you can use bukkits own config handler, or you can use Java file IO package and write your own config writer...
Hey uhh how can i make a bat go to a location?
lewysryan Haha made a mistake on making it returning void sorry :p Ill fix that right up
Look just make it like this In main class: public static JavaPlugin plugin; @Override public void onEnable() { plugin = this; } Then in...
public ItemStack getCustomBow(){ ItemStack bow = new ItemStack(Material.BOW, 1); ItemMeta meta = bow.getItemMeta(); meta.setDisplayName("My Cool...
hmm when the player clicks on the block check every tick or two if he is still right clicking on the same block
Just set a boolean to true if its running and then set it to false when its about to stop maybe?
It's better if you could show us some code to help us answer your question,
Its the same get the location xyz and store it in a file
1.Yes bufferedwriter can write anything you can put into a string, then you can retrieve it with a bufferedreader and Integer.parseInt or...
https://forums.bukkit.org/threads/tutorial-java-7-only-storing-locations-information-in-a-csv-like-database-style.185420/
Actually I think you should just use a bufferedwriter and write to the files directly
Tomass I recently made a small tutorial on saving locations and retrieving them into a file maybe you could go check that out, if it would be any help
So your saving a bunch of players with their values? Why make so many files when you can store all of them in one file
I don't know why but whenever I get on the forums I always see people asking how to save locations(or other information) to a file, so I just...
This is why we have IDEs lol
ItemStack itemStack = new ItemStack(Material.POTION); PotionMeta potionMeta = (PotionMeta) itemStack.getItemMeta(); potionMeta.addCustomEffect(new...
string.subSequence(7,string.length); Gets character starting at the the 7th index until the end of the string
Make plugins for fun, not money :p
PogoStick29 Your videos could be a bit more interesting I guess? I once watched a few of your videos before bed and ended up sleeping mid-video....
Separate names with a comma.