info command, too far away distance changed for widthindex 3
This commit is contained in:
		
					parent
					
						
							
								bdf0155f6e
							
						
					
				
			
			
				commit
				
					
						14e6d0b5e8
					
				
			
		
					 4 changed files with 53 additions and 1 deletions
				
			
		|  | @ -565,7 +565,7 @@ public class MinecleanerArena { | |||
|             case 2: | ||||
|                 return dist > 128.0; | ||||
|             case 3: | ||||
|                 return dist > 256.0; | ||||
|                 return dist > 156.0; | ||||
|         } | ||||
|         return dist > 64.0; | ||||
|     } | ||||
|  |  | |||
|  | @ -7,6 +7,7 @@ import de.iani.playerUUIDCache.PlayerUUIDCache; | |||
| import de.lunarakai.minecleaner.commands.CreateCommand; | ||||
| import de.lunarakai.minecleaner.commands.DeleteCommand; | ||||
| import de.lunarakai.minecleaner.commands.DeletePlayerScoreCommand; | ||||
| import de.lunarakai.minecleaner.commands.InfoCommand; | ||||
| import de.lunarakai.minecleaner.commands.ListCommand; | ||||
| import de.lunarakai.minecleaner.commands.StatsCommand; | ||||
| 
 | ||||
|  | @ -41,6 +42,7 @@ public final class MinecleanerPlugin extends JavaPlugin { | |||
|         minecleanerCommand.addCommandMapping(new ListCommand(this), "list"); | ||||
|         minecleanerCommand.addCommandMapping(new StatsCommand(this), "stats"); | ||||
|         minecleanerCommand.addCommandMapping(new DeletePlayerScoreCommand(this), "deleteplayerscores"); | ||||
|         minecleanerCommand.addCommandMapping(new InfoCommand(this), "info"); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|  |  | |||
|  | @ -0,0 +1,48 @@ | |||
| package de.lunarakai.minecleaner.commands; | ||||
| 
 | ||||
| import org.bukkit.command.Command; | ||||
| import org.bukkit.command.CommandSender; | ||||
| import de.iani.cubesideutils.bukkit.commands.SubCommand; | ||||
| import de.iani.cubesideutils.bukkit.commands.exceptions.DisallowsCommandBlockException; | ||||
| import de.iani.cubesideutils.bukkit.commands.exceptions.IllegalSyntaxException; | ||||
| import de.iani.cubesideutils.bukkit.commands.exceptions.InternalCommandException; | ||||
| import de.iani.cubesideutils.bukkit.commands.exceptions.NoPermissionException; | ||||
| import de.iani.cubesideutils.bukkit.commands.exceptions.RequiresPlayerException; | ||||
| import de.iani.cubesideutils.commands.ArgsParser; | ||||
| import de.lunarakai.minecleaner.MinecleanerPlugin; | ||||
| import net.md_5.bungee.api.ChatColor; | ||||
| 
 | ||||
| public class InfoCommand extends SubCommand{ | ||||
|     MinecleanerPlugin plugin; | ||||
| 
 | ||||
|     public InfoCommand(MinecleanerPlugin plugin) { | ||||
|         this.plugin = plugin; | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public String getUsage() { | ||||
|         return ""; | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean requiresPlayer() { | ||||
|         return false; | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public String getRequiredPermission() { | ||||
|         return MinecleanerPlugin.PERMISSION_PLAY; | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean onCommand(CommandSender sender, Command arg1, String arg2, String arg3, | ||||
|             ArgsParser args) throws DisallowsCommandBlockException, RequiresPlayerException, | ||||
|             NoPermissionException, IllegalSyntaxException, InternalCommandException { | ||||
|                 sender.sendMessage(ChatColor.GREEN + "--- " + ChatColor.AQUA + plugin.getName() + ChatColor.GREEN + " ---"); | ||||
|                 sender.sendMessage(ChatColor.AQUA + "Version: " + ChatColor.GREEN + plugin.getPluginMeta().getVersion()); | ||||
|                 sender.sendMessage(ChatColor.AQUA + "Entwickelt von: " + ChatColor.GREEN + plugin.getPluginMeta().getAuthors().get(0)); | ||||
|                 sender.sendMessage(ChatColor.AQUA + "Website: " + ChatColor.GREEN + plugin.getPluginMeta().getWebsite()); | ||||
|                 sender.sendMessage(ChatColor.AQUA + "Lizenz: " + ChatColor.GREEN + "GPL-3.0"); | ||||
|                 return true; | ||||
|     } | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue