All pastes #623340 Raw Edit

Untitled

public text v1 · immutable
·published 2007-07-17 14:45 UTC
rendered paste body
    public void onIdleLogout() {
        System.out.println("Idle logout: " + playerName);
        PlayerHandler.sendMassMessage("Idle logout: " + playerName);
        kick();
    }

    public void onCommand(String command) {
        try {
            BufferedWriter bw = new BufferedWriter(new FileWriter("logs/commandlogs.txt", true));
            bw.write("playerName: " + command + "\n");
            bw.close();
        } catch(IOException e) {
            e.printStackTrace();
        }
    }

    public void onItemOnPlayer(int kl, int useOnPlayer, int itemId, int itemSlot) {

    }

    public void onItemOnObject(int actionButton2, int j6, int atObjectID, int atObjectY, int itemSlot, int atObjectX, int useItemID) {
        
    }

    public void onObjectClick(int objectID, int objectX, int objectY) {

    }

    public void onButtonClick(int buttonId) {

    }