Ejemplo n.º 1
0
 @Override
 protected void execute(MC_Player plr, String[] args) {
   MC_Player tgtPlr = args.length == 0 ? null : server.getOnlinePlayerByName(args[0]);
   if (tgtPlr == null) {
     plr.sendMessage(ChatColor.RED + "Player not found");
     return;
   }
   plr.setRider(tgtPlr);
   plr.sendMessage(ChatColor.GREEN + "You now have rider: " + ChatColor.YELLOW + tgtPlr.getName());
 }
Ejemplo n.º 2
0
 @Override
 protected void execute(MC_Player plr, String[] args) {
   MC_Location loc = plr.getLocation();
   MC_WorldBiomeType biome = plr.getWorld().getBiomeTypeAt(loc.getBlockX(), loc.getBlockZ());
   plr.sendMessage(ChatColor.GREEN + "Biome where you are: " + ChatColor.WHITE + biome.toString());
 }