mirror of
https://github.com/BentoBoxWorld/Limits.git
synced 2024-11-13 06:05:33 +01:00
Personalize messages differencing between block an entities
This commit is contained in:
parent
f2e9f87fed
commit
f2aa22123c
@ -53,7 +53,7 @@ public class EntityLimitListener implements Listener {
|
||||
for (Entity ent : e.getVehicle().getLocation().getWorld().getNearbyEntities(e.getVehicle().getLocation(), 5, 5, 5)) {
|
||||
if (ent instanceof Player) {
|
||||
((Player) ent).updateInventory();
|
||||
User.getInstance(ent).sendMessage("limits.hit-limit", "[material]",
|
||||
User.getInstance(ent).sendMessage("entity-limits.hit-limit", "[entity]",
|
||||
Util.prettifyText(e.getVehicle().getType().toString())
|
||||
,"[number]", String.valueOf(addon.getSettings().getLimits().get(e.getVehicle().getType())));
|
||||
}
|
||||
@ -116,7 +116,7 @@ public class EntityLimitListener implements Listener {
|
||||
if (!e.getSpawnReason().equals(SpawnReason.SPAWNER)) {
|
||||
for (Entity ent : e.getLocation().getWorld().getNearbyEntities(e.getLocation(), 5, 5, 5)) {
|
||||
if (ent instanceof Player) {
|
||||
User.getInstance(ent).sendMessage("limits.hit-limit", "[material]",
|
||||
User.getInstance(ent).sendMessage("entity-limits.hit-limit", "[entity]",
|
||||
Util.prettifyText(e.getEntityType().toString()),
|
||||
"[number]", String.valueOf(addon.getSettings().getLimits().get(e.getEntityType())));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user