String minecraft = "Best Game"; if (minecraft.equals("Best Game")) { playMinecraft(24, TimeUnit.HOURS); }