Build will fail. Started work on converting to using uuid's internally.
While doing this I deleted one method that I shouldn't have, so going to revert that. Next I have to build a method or two which will allow me to do last known names lookups, etc. Might switch to using a library to handle getting names async so we don't block the server up, doing this will result in us having to recode some of the commands internally. If you have any suggestions or questions, I'm open.
This commit is contained in:
@ -69,7 +69,7 @@ public class JailTimer {
|
||||
for(Prisoner p : j.getAllPrisoners()) {
|
||||
//only execute this code if the prisoner's time is more than 0 milliseconds
|
||||
if(p.getRemainingTime() > 0) {
|
||||
Player player = pl.getServer().getPlayerExact(p.getName());
|
||||
Player player = pl.getServer().getPlayer(p.getUUID());
|
||||
|
||||
//Check if the player is offline
|
||||
if(player == null) {
|
||||
|
Reference in New Issue
Block a user