mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Fixes #434
This commit is contained in:
		@@ -293,7 +293,10 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
 | 
			
		||||
 | 
			
		||||
    @EventHandler
 | 
			
		||||
    public void PlayerCommand(final PlayerCommandPreprocessEvent event) {
 | 
			
		||||
        final String message = event.getMessage().toLowerCase().replaceAll("/", "");
 | 
			
		||||
        final String message = event.getMessage().toLowerCase().replaceAll("/", "").trim();
 | 
			
		||||
        if (message.length() == 0) {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
        String[] split = message.split(" ");
 | 
			
		||||
        PluginCommand cmd = Bukkit.getServer().getPluginCommand(split[0]);
 | 
			
		||||
        if (cmd == null) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user