From 2e7613ae9c9f7c3af317addadbc15bdfa4215bb1 Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Tue, 4 Jul 2017 16:18:21 +0100 Subject: [PATCH] Create LWC protections with UUIDs instead of the name Thanks to @Brokkonaut for noticing this --- .../Acrobot/ChestShop/Plugins/LightweightChestProtection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Plugins/LightweightChestProtection.java b/src/main/java/com/Acrobot/ChestShop/Plugins/LightweightChestProtection.java index c68ad10..efc4e79 100644 --- a/src/main/java/com/Acrobot/ChestShop/Plugins/LightweightChestProtection.java +++ b/src/main/java/com/Acrobot/ChestShop/Plugins/LightweightChestProtection.java @@ -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);