9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2025-12-26 18:29:16 +00:00

Move player to editor when adding new region element

This commit is contained in:
SamB440
2021-06-12 18:04:39 +01:00
parent b7a4c0add9
commit 13c401caaf

View File

@@ -81,6 +81,7 @@ public class AddRegionElementGUI extends RPGRegionsGUI {
region.getRequirements().add((RegionRequirement) newInstance);
}
new EditRegionElementGUI(plugin, player, region, registry).open();
player.playSound(player.getLocation(), Sound.BLOCK_ENCHANTMENT_TABLE_USE, 1f, 1f);
});
items.add(guiItem);