Added messages.yml, must be implemented.
This commit is contained in:
parent
110c5cbfd5
commit
6319b181c4
5 changed files with 162 additions and 6 deletions
|
@ -229,7 +229,7 @@ public class V10LiftAPI {
|
|||
*
|
||||
* @param blocks The blockset
|
||||
* @param block The LiftBlock
|
||||
* @return 0 if added, -1 if null or doesn't exists, -2 if forbidden, -3 if already added
|
||||
* @return 0 if added, -2 if forbidden, -3 if already added
|
||||
*/
|
||||
public int addBlockToLift(@Nonnull Set<LiftBlock> blocks, @Nonnull LiftBlock block) {
|
||||
if (getFBM().isForbidden(block.getMat())) return -2;
|
||||
|
|
|
@ -365,7 +365,7 @@ public class V10LiftCommand implements CommandExecutor {
|
|||
e.printStackTrace();
|
||||
}
|
||||
|
||||
sender.sendMessage(ChatColor.YELLOW + "Plugin reset successful!");
|
||||
sender.sendMessage(ChatColor.YELLOW + "Plugin reloaded successfully!");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -566,6 +566,10 @@ public class V10LiftCommand implements CommandExecutor {
|
|||
} else {
|
||||
OfflinePlayer wp = Bukkit.getOfflinePlayer(args[2]);
|
||||
wpu = wp.getUniqueId();
|
||||
if (!wp.hasPlayedBefore()) {
|
||||
sender.sendMessage(ChatColor.RED + "Player " + args[2] + " not found!");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
String floor = null;
|
||||
|
|
|
@ -266,10 +266,6 @@ public class PlayerInteractListener implements Listener {
|
|||
if (e.getAction() != Action.RIGHT_CLICK_BLOCK) return;
|
||||
e.setCancelled(true);
|
||||
Block block = e.getClickedBlock();
|
||||
if (V10LiftPlugin.getAPI().getFBM().isForbidden(block.getType())) {
|
||||
p.sendMessage(ChatColor.RED + "The material " + e.getClickedBlock().getType().toString() + " is currently not supported!");
|
||||
return;
|
||||
}
|
||||
String liftName = DataManager.getEditPlayer(p.getUniqueId());
|
||||
if (!V10LiftPlugin.getAPI().containsRope(liftName, block)) {
|
||||
p.sendMessage(ChatColor.RED + "This block is not part of the rope.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue