Create LWC protections with UUIDs instead of the name

Thanks to @Brokkonaut for noticing this
This commit is contained in:
Phoenix616 2017-07-04 16:18:21 +01:00
parent 0dea862cd0
commit 2e7613ae9c
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ public class LightweightChestProtection implements Listener {
return;
}
Protection protection = lwc.getPhysicalDatabase().registerProtection(block.getTypeId(), Protection.Type.PRIVATE, worldName, player.getName(), "", x, y, z);
Protection protection = lwc.getPhysicalDatabase().registerProtection(block.getTypeId(), Protection.Type.PRIVATE, worldName, player.getUniqueId().toString(), "", x, y, z);
if (protection != null) {
event.setProtected(true);