mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Updates registries on /dxl rename
This commit is contained in:
parent
7cdb5f9329
commit
ab514e4938
@ -96,6 +96,11 @@ public class RenameCommand extends DCommand {
|
|||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
resource.getSingleFloorDungeon().setName(args[2]);
|
||||||
|
plugin.getDungeonRegistry().removeKey(args[1]);
|
||||||
|
plugin.getDungeonRegistry().add(args[2], resource.getSingleFloorDungeon());
|
||||||
|
plugin.getMapRegistry().removeKey(args[1]);
|
||||||
|
plugin.getMapRegistry().add(args[2], resource);
|
||||||
|
|
||||||
boolean changed = false;
|
boolean changed = false;
|
||||||
for (GlobalProtection protection : plugin.getGlobalProtectionCache().getProtections().toArray(new GlobalProtection[]{})) {
|
for (GlobalProtection protection : plugin.getGlobalProtectionCache().getProtections().toArray(new GlobalProtection[]{})) {
|
||||||
|
Loading…
Reference in New Issue
Block a user