Trying ur plugin steps is wasting too much time
stoping the test server
then building ur plugin again
then starting the server again
then joining the server
and finally trying the command…
is there a way to take Strings from a txt file
then using them like they have been wrote in ur plugin?
this way all u have to do is to change the command strings in file and use run command…
This seems like something you should be doing with a config. Although if you want to use a text file, you can make a BufferedReader like so BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(new File("path/goes/here"))));. Then you can use BufferedReader#readLine() to read each line of the file in turn
im not asking how to write to a file or config…
What im trying to say is;
I want to try some codes without restarting server
i want this plugin to read the file,
then convert that string into usual commands…
Actually i dont think this is possible but im just trying…
Yeah sorry, the actual code I copied straight out of my plugin, but then I split it over multiple lines without checking to make sure I didn’t make any errors, as well as changing the variable to a hard coded string.