Skip to content

Commit

Permalink
Merge pull request #635 from Multiverse/Send-incorrect-material-message-
Browse files Browse the repository at this point in the history
Send incorrect material message.
  • Loading branch information
nicegamer7 authored Feb 17, 2023
2 parents 8930b2f + dd4db63 commit 9f94029
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.onarandombox.MultiversePortals.PortalPlayerSession;
import com.onarandombox.MultiversePortals.enums.MoveType;
import com.onarandombox.MultiversePortals.event.MVPortalEvent;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.Player;
Expand Down Expand Up @@ -108,7 +109,7 @@ public void playerMove(PlayerMoveEvent event) {
return;
}
if (!portal.isFrameValid(loc)) {
//event.getPlayer().sendMessage("This portal's frame is made of an " + ChatColor.RED + "incorrect material." + ChatColor.RED + " You should exit it now.");
p.sendMessage("This portal's frame is made of an " + ChatColor.RED + "incorrect material. You should exit it now.");
return;
}
if (portal.getHandlerScript() != null && !portal.getHandlerScript().isEmpty()) {
Expand Down

0 comments on commit 9f94029

Please sign in to comment.