PermResult result = APIRegistry.perms.checkPermResult(query);
switch (result)
{
case ALLOW:
TaskRegistry.registerTask(new TickTaskReplaceSelection(player, firstID, firstMeta, secondID, secondMeta, back, sel));
return;
case PARTIAL:
TaskRegistry.registerTask(new TickTaskReplaceSelection(player, firstID, firstMeta, secondID, secondMeta, back, sel, query.applicable));
default:
OutputHandler.chatError(player, "Insufficient permission.");
return;
}