I fixxed it and heres the line of code i used. package me.FatalAura.PlayTime.Command1; import org.bukkit.ChatColor; import...
Wait whats player.sendMessage("You played " + hours + " hours") for? I had it so it popped up here...
So put int ticks = player.getStatistic(Statistic.PLAY_ONE_TICK); int seconds = ticks / 20; int minutes = seconds / 60; int hours = minutes / 60;...
Ok so replace t sender.sendMessage("Hey! You can't use this in the terminal!"); and put int ticks = player.getStatistic(Statistic.PLAY_ONE_TICK);...
So create another if and else statement im guessing... package me.FatalAura.PlayTime.Command1; import org.bukkit.ChatColor; import...
Im sorry i dont understand do i edit my if statement already? if so do i put this line in? int ticks =...
Where do i put the if/else statement? and what do i put in it?
I saw that but i didnt know what line to use and where to put it any help? Cause i wanna type /playtime and the the ammount of time you been on...
It worked! Thank you so much! But another question how do i convert ticks into Days-Hours-Min-Seconds
Do i put a message in the " "? like "Your play time is "+player.getStatistic(Statistic.PLAY_ONE_TICK));
I tried your line of code and it didnt work.
I don't really know what you mean can you help?
So im working on a plugin that does /playtime and it tells you your time being on the server, BUT... When ever i type /playtime it just says the...
oh Ok so the plugin works now and is running when i type /depression it does only half a heart how to i make it so it give wither 2 for 5 seconds...
Like this?
/* Could not load 'plugins/Numb version1.1.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml at...
Ok so i was coding this plugin and i got " Could not load 'plugins/Numb version1.1.jar' in folder 'plugins' " This is my code Main package...
Separate names with a comma.