Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

25122016 #64

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ public void handle(ChangeBlockEvent event) throws Exception {
r = Response.LOCATION;
}
if (r == Response.BASIC)
player.sendMessage(ChatTypes.ACTION_BAR, Text.of("You don't have permission!"));
player.sendMessage(ChatTypes.ACTION_BAR, Text.of("У вас нет разрешения!"));
else if (r == Response.LOCATION)
player.sendMessage(ChatTypes.ACTION_BAR, Text.of("You don't have permission! " +
player.sendMessage(ChatTypes.ACTION_BAR, Text.of("У вас нет разрешения! " +
event.getTransactions().get(0).getOriginal().getPosition() +
(event.getTransactions().size() > 1 ? "..." : "")));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void handle(DamageEntityEvent event) throws Exception {
}
if (flagState == FALSE) {
if (player != null && player.isOnline() && !invincible) {
player.sendMessage(ChatTypes.ACTION_BAR, Text.of("You don't have permission!"));
player.sendMessage(ChatTypes.ACTION_BAR, Text.of("У вас нет разрешения!"));
}
event.setCancelled(true);
} else {
Expand Down Expand Up @@ -179,7 +179,7 @@ public void handle(DamageEntityEvent event) throws Exception {
builder.cause(FoxGuardMain.getCause());
event.setDamage(builder.build(), damage -> ((Living) event.getTargetEntity()).getHealthData().health().get() - damage - 1);
if (player != null && player.isOnline() && !invincible)
player.sendMessage(ChatTypes.ACTION_BAR, Text.of("You don't have permission to kill!"));
player.sendMessage(ChatTypes.ACTION_BAR, Text.of("У вас нет разрешения, для убийства!"));
}
}
//makes sure that handlers are unable to cancel the event directly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void handle(ExplosionEvent event) throws Exception {
}
if (flagState == Tristate.FALSE) {
if (user instanceof Player)
((Player) user).sendMessage(ChatTypes.ACTION_BAR, Text.of("You don't have permission!"));
((Player) user).sendMessage(ChatTypes.ACTION_BAR, Text.of("У вас нет разрешения!"));
((Cancellable) event).setCancelled(true);
} else {
//makes sure that handlers are unable to cancel the event directly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void handle(InteractBlockEvent event) throws Exception {
// if (flagState == UNDEFINED) flagState = TRUE;
if (flagState == FALSE) {
if (user instanceof Player)
((Player) user).sendMessage(ChatTypes.ACTION_BAR, Text.of("You don't have permission!"));
((Player) user).sendMessage(ChatTypes.ACTION_BAR, Text.of("У вас нет разрешения!"));
event.setCancelled(true);
} else {
//makes sure that handlers are unable to cancel the event directly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void handle(InteractEntityEvent event) throws Exception {
// if(flagState == UNDEFINED) flagState = TRUE;
if (flagState == FALSE) {
if (user instanceof Player)
((Player) user).sendMessage(ChatTypes.ACTION_BAR, Text.of("You don't have permission!"));
((Player) user).sendMessage(ChatTypes.ACTION_BAR, Text.of("У вас нет разрешения!"));
event.setCancelled(true);
} else {
//makes sure that handlers are unable to cancel the event directly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public void handle(MoveEntityEvent event) throws Exception {
}

if (flagState == Tristate.FALSE) {
player.sendMessage(ChatTypes.ACTION_BAR, Text.of("You don't have permission to pass!"));
player.sendMessage(ChatTypes.ACTION_BAR, Text.of("У вас нет разрешения для прохода!"));
Vector3d position = this.last.get(player).position;
if (position == null) position = event.getFromTransform().getPosition();
event.setToTransform(event.getToTransform().setPosition(position));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void handle(SpawnEntityEvent event) throws Exception {
}
if (flagState == Tristate.FALSE) {
if (user instanceof Player)
((Player) user).sendMessage(ChatTypes.ACTION_BAR, Text.of("You don't have permission!"));
((Player) user).sendMessage(ChatTypes.ACTION_BAR, Text.of("У вас нет разрешения!"));
event.setCancelled(true);
} else {
//makes sure that handlers are unable to cancel the event directly.
Expand Down