@@ -0,0 +1,1259 @@
+package ru.beykerykt.lightsource.items.flags.basic;%0A%0Aimport org.bukkit.entity.Entity;%0Aimport org.bukkit.inventory.ItemStack;%0A%0Aimport net.md_5.bungee.api.ChatColor;%0Aimport ru.beykerykt.lightsource.LightSourceAPI;%0Aimport ru.beykerykt.lightsource.items.Item;%0Aimport ru.beykerykt.lightsource.items.flags.RequirementFlagExecutor;%0A%0Apublic class WorldCheckExecutor implements RequirementFlagExecutor %7B%0A%0A%09@Override%0A%09public boolean onCheckRequirement(Entity entity, ItemStack itemStack, Item item, String%5B%5D args) %7B%0A%09%09if (args.length %3E 0) %7B%0A%09%09%09for (int i = 0; i %3C args.length; i++) %7B%0A%09%09%09%09String world = args%5Bi%5D;%0A%09%09%09%09if (entity.getWorld().getName().equals(world)) %7B%0A%09%09%09%09%09return true;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return false;%0A%09%7D%0A%0A%09@Override%0A%09public void onCheckingSuccess(Entity entity, ItemStack itemStack, Item item, String%5B%5D args) %7B%0A%09%7D%0A%0A%09@Override%0A%09public void onCheckingFailure(Entity entity, ItemStack itemStack, Item item, String%5B%5D args) %7B%0A%09%09LightSourceAPI.sendMessage(entity, ChatColor.RED + %22Sorry, but in this world you can not use this item. :(%22);%0A%09%09LightSourceAPI.sendMessage(entity, ChatColor.GREEN + %22You can use it in the following worlds%22);%0A%09%09for (int i = 0; i %3C args.length; i++) %7B%0A%09%09%09String world = args%5Bi%5D;%0A%09%09%09LightSourceAPI.sendMessage(entity, world);%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

add WorldCheckExecutor