mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-23 02:35:25 +01:00
Add message for interacting with island spawn point
This commit is contained in:
parent
399f94009a
commit
d3b1426143
@ -128,6 +128,10 @@ public class Block implements Listener {
|
|||||||
.subtract(0.0D, 1.0D, 0.0D))) {
|
.subtract(0.0D, 1.0D, 0.0D))) {
|
||||||
if (configLoad.getBoolean("Island.Spawn.Protection")) {
|
if (configLoad.getBoolean("Island.Spawn.Protection")) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
skyblock.getMessageManager().sendMessage(player,
|
||||||
|
skyblock.getFileManager().getConfig(new File(skyblock.getDataFolder(), "language.yml"))
|
||||||
|
.getFileConfiguration().getString("Island.SpawnProtection.Break.Message"));
|
||||||
|
skyblock.getSoundManager().playSound(player, Sounds.VILLAGER_NO.bukkitSound(), 1.0F, 1.0F);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -196,6 +200,10 @@ public class Block implements Listener {
|
|||||||
island.getLocation(world, IslandEnvironment.Main).clone().subtract(0.0D, 1.0D, 0.0D))) {
|
island.getLocation(world, IslandEnvironment.Main).clone().subtract(0.0D, 1.0D, 0.0D))) {
|
||||||
if (configLoad.getBoolean("Island.Spawn.Protection")) {
|
if (configLoad.getBoolean("Island.Spawn.Protection")) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
skyblock.getMessageManager().sendMessage(player,
|
||||||
|
skyblock.getFileManager().getConfig(new File(skyblock.getDataFolder(), "language.yml"))
|
||||||
|
.getFileConfiguration().getString("Island.SpawnProtection.Place.Message"));
|
||||||
|
skyblock.getSoundManager().playSound(player, Sounds.VILLAGER_NO.bukkitSound(), 1.0F, 1.0F);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -915,6 +915,11 @@ Island:
|
|||||||
Message: "&bSkyBlock &8| &aInfo&8: &eYou have bought the upgrade '&7%upgrade&e'."
|
Message: "&bSkyBlock &8| &aInfo&8: &eYou have bought the upgrade '&7%upgrade&e'."
|
||||||
Claimed:
|
Claimed:
|
||||||
Message: "&bSkyBlock &8| &cError&8: &eYou have already claimed that upgrade."
|
Message: "&bSkyBlock &8| &cError&8: &eYou have already claimed that upgrade."
|
||||||
|
SpawnProtection:
|
||||||
|
Break:
|
||||||
|
Message: "&bSkyBlock &8| &cError&8: &eYou cannot break the spawn point of the island."
|
||||||
|
Place:
|
||||||
|
Message: "&bSkyBlock &8| &cError&8: &eYou cannot obstruct the spawn point of the island."
|
||||||
Biome:
|
Biome:
|
||||||
Cooldown:
|
Cooldown:
|
||||||
Word:
|
Word:
|
||||||
|
Loading…
Reference in New Issue
Block a user