Please be more precised. Do you get the error in your IDE, as a StackTrace or is the Code just not executing. If you get an error please tell what...
Yeah, but it doesn't work that great on some sort of ingame party. If they all need to start the stream manually.
As you guys may know, the best way to play a custom file, is to pack it in a texture pack. But the downside is, it requires a while to download...
But have you checked if a config File is created, saved and has new data?
Mark as solved please ;)
Wait a second. public boolean onCommand(CommandSender sender, Command cmd, Player pl, String label, String[] args) Remove the Player argument....
Have you checked your config.yml File if everything get's saved, etc.?
Would it the same way.
1) Let your Main class implement CommandExecutor public class Battle1vs1 extends JavaPlugin implements Listener, CommandExecutor 2) Register the...
Yeah, yeah. I see.
Are you getting any error messages? Try change this line to: joinANDquitMSG: true with a Space between joinANDquitMSG: and true Anyway, are...
Do you mean something like this? // Method for this: // msg = The message sent to admins void sendReportMessage(String msg) { // Loop through...
// Create new list List<String> list = new ArrayList<>(); // or get list out of config: List<String> list = cfg.getStringList("SomePathHere"); //...
Please post detailed error log :) /motd set is only 1 arg (args[0]) means args[1] would return null and throw an ArrayIndexOutOfBoundsException....
1) Put the ArrayList into the Main Class and not any sub-class. 2) If that didn't help, try to change from ArrayList<Player> to ArrayList<String>....
I would do it like this: // Tell the sender his friends: sender.sendMessage("Your friends:"); // Loop through all Friends: for(String friend :...
1) I don't create them. I create a File instance for this. 2) Check for exist is not needed since done and created by...
It's inside the for-loop (loops through all online players and prints you this message every time) Move those things out of the for-loop:
np ;)
FileConfiguration cfg = YamlConfiguration.loadConfiguration(new File("plugins/YourPluginName", "config.yml")); cfg.options().copyDefaults(true);...
Separate names with a comma.