Gamebuster icon

ConsoleUser.class

Gamebuster | PRO | 10/19/20 01:07:16 AM UTC | 0 ⭐ | 3170 👁️ | Never ⏰ | []
Java |

2.27 KB

|

None

|

0 👍

/

0 👎

package com.gamebuster19901.excite.bot.user;
 
import java.time.Duration;
import java.util.Set;
 
import com.gamebuster19901.excite.Player;
import com.gamebuster19901.excite.bot.audit.ban.DiscordBan;
import com.gamebuster19901.excite.bot.command.MessageContext;
 
import net.dv8tion.jda.api.entities.User;
 
public class ConsoleUser extends UnloadedDiscordUser{
 
    static {
        System.out.println("BEFORE");
    }
    public static final ConsoleUser INSTANCE = new ConsoleUser();
    static {
        System.out.println("AFTER");
    }
    
    private final String name = "CONSOLE";
    
    public ConsoleUser() {
        super(-1);
        System.out.println("CONSTRUCTOR");
    }
    
    @Override
    public User getJDAUser() {
        throw new AssertionError();
    }
    
    @Override
    @SuppressWarnings("rawtypes")
    public DiscordBan ban(MessageContext context, Duration duration, String reason) {
        throw new AssertionError();
    }
    
    @Override
    public String toCSV() {
        throw new AssertionError();
    }
    
    @Override
    public Set<Player> getProfiles() {
        throw new AssertionError();
    }
    
    @Override
    public boolean isBanned() {
        return false;
    }
    
    @Override
    public int getUnpardonedBanCount() {
        throw new AssertionError();
    }
    
    @Override
    public int getTotalBanCount() {
        throw new AssertionError();
    }
    
    @Override
    public void setNotifyThreshold(int threshold) {
        throw new AssertionError();
    }
    
    @Override
    public void setNotifyFrequency(Duration frequency) {
        throw new AssertionError();
    }
    
    @Override
    public void setNotifyContinuously(boolean continuous) {
        throw new AssertionError();
    }
    
    @Override
    public String requestRegistration(Player desiredProfile) {
        throw new AssertionError();
    }
    
    @Override
    public boolean requestingRegistration() {
        throw new AssertionError();
    }
    
    @SuppressWarnings("rawtypes")
    public void sentCommand(MessageContext context) {}
    
    @Override
    public void sendMessage(String message) {
        System.out.println(message);
    }
    
    @SuppressWarnings("rawtypes")
    @Override
    public void sendMessage(MessageContext context, String message) {
        System.out.println(message);
    }
    
    @Override
    public String toString() {
        return name + "(" + getId() + ")"; 
    }
    
    @Override
    public String toDetailedString() {
        return toString();
    }
 
}
 

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎