Skip to content

Commit

Permalink
Update collabcraft.java
Browse files Browse the repository at this point in the history
  • Loading branch information
imightexist authored Nov 21, 2022
1 parent 4cb6ee6 commit f54b9eb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/java/io/papermc/collabcraft/collabcraft.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void run(){
try{
Thread.sleep(time*10);
}catch(Exception e){

}
}
}
Expand All @@ -53,7 +53,15 @@ public void run(){
private Thread turnThread;
public void onEnable() {
Bukkit.getPluginManager().registerEvents(this, this);
turnTime.show();
turnTime.setVisible(true);
}
public void onPlayerJoin(Player p){
p.setGameMode(GameMode.SPECTATOR);
}
public void onPlayerQuit(Player p){
if (waiting.get(0) == p){
waiting.remove(p);
}
}
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
if (sender instanceof Player) {
Expand Down

0 comments on commit f54b9eb

Please sign in to comment.