Posted January 14, 20196 yr comment_26573 This is a quick release/tutorial on getting 'Time Played' on a Valius or Vencillio base, only reason im posting it is because I haven't seen anyone release something like this and its my own work. I am OneTrueGodTet on R-S this is my work, Just wanted to post it here as well seeing as im new and not everyone may have access to it there This is the hidden content, please Sign In or Sign Up I'm not saying its perfect or that it dosen't need some tender love and care but here ya go.in rs2\entitiy\playerPlayer.java add the following imports: import com.mayhem.rs2.entity.player.net.TimePlayed import java.util.concurrent.TimeUnit; and add the following under: public class Player extends Entity { This is the hidden content, please Sign In or Sign Up And still in Player.java add the following under: public void setShopCollection(long shopCollection) { This is the hidden content, please Sign In or Sign Up Next in rs2\entitiy\player\net Create a class called Timeplayed.java and add the following This is the hidden content, please Sign In or Sign Up Next step is optional i guess in playercommand.java add the following command This is the hidden content, please Sign In or Sign Up and add the following in CommandInterface.java This is the hidden content, please Sign In or Sign Up in Playersave.java found in rs2\content\io: look for: public PlayerDetails(Player player) { and somewhere under that up to you add: This is the hidden content, please Sign In or Sign Up Lastly in InformationTab.java, rs2\content\interfaces\impl\Quest Under "Online Staff: " + World.getStaff(), Add This is the hidden content, please Sign In or Sign Up Well thats it you should be able to get a decent working time played from that any criticism or improvements are welcome! If you found this helpful please leave a thanks or a rep+ Edited January 14, 20196 yr by Gildartsthegreat made it look better
May 9, 20205 yr comment_54869 Pretty sweet snippet. I always found explicit comments on every field a bit obnoxious myself
Create an account or sign in to comment