Consistent UUID usage across file handling
This commit is contained in:
@@ -186,8 +186,7 @@ public class UUIDVaultManager {
|
|||||||
* @throws IOException Uh oh!
|
* @throws IOException Uh oh!
|
||||||
*/
|
*/
|
||||||
public void deleteVault(CommandSender sender, UUID holder, int number) throws IOException {
|
public void deleteVault(CommandSender sender, UUID holder, int number) throws IOException {
|
||||||
String name = holder.toString();
|
File file = new File(directory, holder.toString() + ".yml");
|
||||||
File file = new File(directory, name.toLowerCase() + ".yml");
|
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user