<commit_before>package org.c4k3.Misc;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

public class AdminShortcuts implements CommandExecutor {
	
	public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
		
		String scmd = command.getName();
		
		Player player = null;
		if (sender instanceof Player) {
			player = (Player) sender;
		}
		
		/* On /dw runs the command
		 * /lb destroyed block 56 since 1d sum players world "world"
		 */
		if ( scmd.equalsIgnoreCase("dw")) {
			player.performCommand("lb lookup destroyed block 56 since 1d sum players world \"world\"");
			return true;
		}
		
		/* On /dp runs the command
		 * /lb destroyed block 56 since 1d sum players world "pvp"
		 */
		if ( scmd.equalsIgnoreCase("dp")) {
			player.performCommand("lb lookup destroyed block 56 since 1d sum players world \"pvp\"");
			return true;
		}
		
		/* On /x runs the command
		 * /lb destroyed block 56 since 1d player args[0] coords
		 */
		if ( scmd.equalsIgnoreCase("x")) {
			
			/* Checking that the correct amount of arguments were entered */
			if ( args.length == 1 ) {
				
				player.performCommand("lb lookup destroyed block 56 since 1d player " + args[0] + " coords");
				
			} else {
				/* Incorrect amount of arguments */
				sender.sendMessage(ChatColor.RED + "Incorrect amount of arguments\n" +
						"Proper syntax is /x <player>");
				return true;
			}
			
		}
		
		<commit_msg>Changing /x, /dw and /dp timelimit to 2 days<commit_after>package org.c4k3.Misc;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

public class AdminShortcuts implements CommandExecutor {
	
	public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
		
		String scmd = command.getName();
		
		Player player = null;
		if (sender instanceof Player) {
			player = (Player) sender;
		}
		
		/* On /dw runs the command
		 * /lb destroyed block 56 since 1d sum players world "world"
		 */
		if ( scmd.equalsIgnoreCase("dw")) {
			player.performCommand("lb lookup destroyed block 56 since 2d sum players world \"world\"");
			return true;
		}
		
		/* On /dp runs the command
		 * /lb destroyed block 56 since 1d sum players world "pvp"
		 */
		if ( scmd.equalsIgnoreCase("dp")) {
			player.performCommand("lb lookup destroyed block 56 since 2d sum players world \"pvp\"");
			return true;
		}
		
		/* On /x runs the command
		 * /lb destroyed block 56 since 1d player args[0] coords
		 */
		if ( scmd.equalsIgnoreCase("x")) {
			
			/* Checking that the correct amount of arguments were entered */
			if ( args.length == 1 ) {
				
				player.performCommand("lb lookup destroyed block 56 since 2d player " + args[0] + " coords");
				
			} else {
				/* Incorrect amount of arguments */
				sender.sendMessage(ChatColor.RED + "Incorrect amount of arguments\n" +
						"Proper syntax is /x <player>");
				return true;
			}
			
		}
		
		
{'fraction_non_alphanumeric': 0.10868878357030015, 'fraction_numerical': 0.014849921011058451, 'mean_word_length': 3.090439276485788, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7542190', 'n_tokens_mistral': 1159, 'n_tokens_neox': 919, 'n_words': 318}