File data = new File(getPath() + "/data.txt");
boolean content = Utils.FileUtils.writeStringToFile("hi",data);
there is NO file data.txt anywhere
File data = new File(getPath() + "/data.txt");
boolean content = Utils.FileUtils.writeStringToFile("hi",data);
there is NO file data.txt anywhere
Hmm... that looks fine to me... I just tried it and it worked as intended What operating system do you use? Where do you call this code?
Windows 10, and OK, that was weird, I called it in onSpawn and it wrote the File, I used onCommand and it didn't do anything...
ok is there a way to call it from "onCommand"? I'm Tring to make it Write some data after I issue a /command.
ok is there a way to call it from "onCommand"? I'm Tring to make it Write some data after I issue a /command.
Sure, you can call if from everywhere Maybe post your "onCommand()" code here
ok I just used my test code plugin, inserted the command, issued it in RW, it worked, but it completly igorned the IF statement and wrote it anyway. how do I make so it will see the IF statement?
idk but your substring for ecmd is set at 4 so you should never get Drink only Drin or Feedme will be Feed oO
Anyway you could do
Don’t have an account yet? Create a new account now and be part of our community!