Posted February 24, 201312 yr I have some code in a tick handler that checks player.getSleepTimer(); to run some code at a certain point when a player is about to fall asleap. This code needs to be run on the server, but I just realized when trying to port my mod to a real server it doesn't work since the method getSleepTimer() is client side only. It gives access to the private variable sleepTimer. Is there a way I can get past one of these restrictions to have access to the sleepTimer?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.