mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-09 16:47:36 +01:00
Create LWC protections with UUIDs instead of the name
Thanks to @Brokkonaut for noticing this
This commit is contained in:
parent
0dea862cd0
commit
2e7613ae9c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user