@@ -0,0 +1,1893 @@
+/*%0A * Copyright 2011 Sebastian K%C3%B6hler %3Csebkoehler@whoami.org.uk%3E.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage uk.org.whoami.authme.cache.limbo;%0A%0Aimport java.util.HashMap;%0A%0Aimport org.bukkit.Location;%0Aimport org.bukkit.entity.Player;%0Aimport org.bukkit.inventory.ItemStack;%0A%0Apublic class LimboCache %7B%0A%0A    private static LimboCache singleton = null;%0A    private HashMap%3CString, LimboPlayer%3E cache;%0A%0A    private LimboCache() %7B%0A        this.cache = new HashMap%3CString, LimboPlayer%3E();%0A    %7D%0A%0A    public void addLimboPlayer(Player player) %7B%0A        String name = player.getName().toLowerCase();%0A        Location loc = player.getLocation();%0A        ItemStack%5B%5D inv = player.getInventory().getContents();%0A        ItemStack%5B%5D arm = player.getInventory().getArmorContents();%0A        int gameMode = player.getGameMode().getValue();%0A%0A        cache.put(player.getName().toLowerCase(), new LimboPlayer(name, loc, inv, arm, gameMode));%0A    %7D%0A%0A    public void deleteLimboPlayer(String name) %7B%0A        cache.remove(name);%0A    %7D%0A%0A    public LimboPlayer getLimboPlayer(String name) %7B%0A        return cache.get(name);%0A    %7D%0A%0A    public boolean hasLimboPlayer(String name) %7B%0A        return cache.containsKey(name);%0A    %7D%0A%0A    public static LimboCache getInstance() %7B%0A        if (singleton == null) %7B%0A            singleton = new LimboCache();%0A        %7D%0A        return singleton;%0A    %7D%0A%7D%0A

Create LimbuCache.java