浏览代码

Fixed the message to look nicer

nossr50 14 年之前
父节点
当前提交
f15e00bdc7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      vMinecraftListener.java

+ 2 - 2
vMinecraftListener.java

@@ -98,9 +98,9 @@ public class vMinecraftListener extends PluginListener {
                 player.teleportTo(home.Location);
                 player.teleportTo(home.Location);
                 //Makes sure the player has a custom home before telling them about /myspawn
                 //Makes sure the player has a custom home before telling them about /myspawn
                 if(etc.getServer().getSpawnLocation() != etc.getDataSource().getHome(player.getName()).Location){
                 if(etc.getServer().getSpawnLocation() != etc.getDataSource().getHome(player.getName()).Location){
-                player.sendMessage(Colors.DarkPurple + "Return here with /myspawn, the penalty for returning is the complete loss of inventory");
+                vMinecraftChat.sendMessage(player, Colors.DarkPurple + "Return here with /myspawn, the penalty for returning is the complete loss of inventory");
                 } else {
                 } else {
-                    player.sendMessage(Colors.DarkPurple + "Set your own spawn with /myspawn");
+                    vMinecraftChat.sendMessage(player, Colors.DarkPurple + "Set your own spawn with /myspawn");
                 }
                 }
                 }
                 }
                 vMinecraftUsers.getProfile(player).isDead(false);
                 vMinecraftUsers.getProfile(player).isDead(false);