Deadbolt icon indicating copy to clipboard operation
Deadbolt copied to clipboard

Deadbolt requires a "players" directory

Open roastnewt opened this issue 10 years ago • 7 comments

As of 1.7.8, there is no "players" directory in the minecraft world folder (it's now playerdata or something). Deadbolt seems to depend on the players directory existing in order to work. This bug can be worked-around by making an empty directory titled "players."

roastnewt avatar Apr 17 '14 13:04 roastnewt

Can confirm this is so.

Unfortunately, my players have already felt the negative effects of this issue.

markhughes avatar May 07 '14 03:05 markhughes

My users have also been affected by this issue. When any of them log off from the server their protections expire immediately instead of after 90 days resulting in widespread looting of their containers.

A workaround until this issue is fixed is to disable the expiry date of protections by setting it to 0 in the configuration file. Hopefully a fix will be provided soon.

RENMX avatar May 07 '14 13:05 RENMX

Sounds like a bukkit bug with looking up players.also deadbolt won't work across name changes.

md-5 avatar May 08 '14 01:05 md-5

By the way I should have mentioned I am using right now Spigot build #1453 and in-front of that I am using BungeeCord build #905.

RENMX avatar May 08 '14 01:05 RENMX

@md-5 I don't know about RenMX's issue, but my original report is not a bukkit bug, deadbolt looks for a "players" directory here:

https://github.com/daemitus/Deadbolt/blob/master/src/main/java/com/daemitus/deadbolt/PlayerNameUtil.java#L33

and the "players" directory has been renamed in 1.7.9, so this causes deadbolt to fail to start.

roastnewt avatar May 08 '14 02:05 roastnewt

@roastnewt The reason I replied in this thread is because I figured the bug you reported was applicable to my situation as I assumed that the reason it's not able to determine expiry dates for users is because it's looking in the wrong folder for the user files.

RENMX avatar May 08 '14 02:05 RENMX

Actually I've just experienced @RenMX 's issue too - but I guess that should be in a separate issue ticket :)

markhughes avatar May 08 '14 16:05 markhughes