PermResult result = APIRegistry.perms.checkPermResult(query);
switch (result)
{
case ALLOW:
TaskRegistry.registerTask(new TickTaskSetSelection(player, ID, metadata, back, sel));
return;
case PARTIAL:
TaskRegistry.registerTask(new TickTaskSetSelection(player, ID, metadata, back, sel, query.applicable));
default:
OutputHandler.chatError(player,
"You have insufficient permission to do that. If you believe you received this message in error, please talk to a server admin.");
return;
}