src/main/java/net/pistonmaster/pistonqueue/shared/StorageTool.java
public static boolean shadowBanPlayer(UUID player, Date date) {
        manageBan(player);

        if (dataConfig.node(player.toString()).virtual()) {
            try {
                dataConfig.node(player.toString()).set(date.toString());
            } catch (SerializationException e) {
                e.printStackTrace();
            }

            saveData();

            return true;
        } else {
            return false;
        }
    }
/**
     * Shadow-ban a player!
     *
     * @param player The player to shadow-ban.
     * @param date   The date when he will be unbanned.
     * @return true if player got shadow-banned and if already shadow-banned false.
     */
Shadow-ban a player.
@param player The player to shadow-ban.
@param date   The date when he will be unbanned.
@return true if player got shadow-banned and if already shadow-banned false.
Shadow - ban a player . @param player The player to shadow - ban . @param date The date when he will be unbanned . @return true if player got shadow - banned and if already shadow - banned false .
public static boolean shadowBanPlayer(UUID player, Date date) {
        manageBan(player);
        if (dataConfig.node(player.toString()).virtual()) {
            try {
                dataConfig.node(player.toString()).set(date.toString());
            } catch (SerializationException e) {
                e.printStackTrace();
            }
            saveData();
            return true;
        } else {
            return false;
        }
    }
public static boolean shadowBanPlayer ( UUID player , Date date ) { manageBan ( player ) ; if ( dataConfig . node ( player . toString ( ) ) . virtual ( ) ) { try { dataConfig . node ( player . toString ( ) ) . set ( date . toString ( ) ) ; } catch ( SerializationException e ) { e . printStackTrace ( ) ; } saveData ( ) ; return true ; } else { return false ; } }
Shadow-ban a player!
Shadow - ban a player!