mirror of
https://github.com/2006Scape-Scripts/ParaScript.git
synced 2026-07-03 08:39:12 +00:00
Auto fill username if logged in
This commit is contained in:
@@ -3,6 +3,7 @@ package ParaScript.ui;
|
||||
import ParaScript.data.variables.Trees;
|
||||
import ParaScript.data.Variables;
|
||||
import org.rev317.min.api.methods.Game;
|
||||
import org.rev317.min.api.methods.Players;
|
||||
import org.rev317.min.api.wrappers.Player;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -60,6 +61,7 @@ public class UI extends JFrame {
|
||||
lblUsername.setForeground(Color_WhiteSmoke);
|
||||
lblUsername.setBounds(20, 20, 73, 20);
|
||||
loginPanel.add(lblUsername);
|
||||
username.setText(Game.isLoggedIn() ? Players.getMyPlayer().getName() : "");
|
||||
username.setBounds(20, 40, 150, 20);
|
||||
loginPanel.add(username);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user