Skip to content

Commit

Permalink
Fixed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Dseym committed Nov 2, 2020
1 parent 1df3276 commit 2ce475f
Show file tree
Hide file tree
Showing 62 changed files with 8 additions and 12 deletions.
5 changes: 0 additions & 5 deletions bin/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
/amongUs/
/events/
/game/
/listeners/
/sabotages/
/tasks/
Binary file modified bin/amongUs/Config.class
Binary file not shown.
Binary file modified bin/game/Lobby$1.class
Binary file not shown.
Binary file modified bin/game/Lobby$2.class
Binary file not shown.
Binary file modified bin/game/Lobby.class
Binary file not shown.
Binary file added bin/game/PlaySound.class
Binary file not shown.
Binary file added bin/sabotages/Sabotage$1.class
Binary file not shown.
Binary file added bin/sabotages/Sabotage.class
Binary file not shown.
Binary file added bin/sabotages/SabotageCommunicate$1.class
Binary file not shown.
Binary file added bin/sabotages/SabotageCommunicate$2.class
Binary file not shown.
Binary file added bin/sabotages/SabotageCommunicate.class
Binary file not shown.
Binary file added bin/sabotages/SabotageElectrical$1.class
Binary file not shown.
Binary file added bin/sabotages/SabotageElectrical$2.class
Binary file not shown.
Binary file added bin/sabotages/SabotageElectrical.class
Binary file not shown.
Binary file added bin/sabotages/SabotageOxygen$1.class
Binary file not shown.
Binary file added bin/sabotages/SabotageOxygen$2.class
Binary file not shown.
Binary file added bin/sabotages/SabotageOxygen.class
Binary file not shown.
Binary file added bin/sabotages/SabotageReactor$1.class
Binary file not shown.
Binary file added bin/sabotages/SabotageReactor$2.class
Binary file not shown.
Binary file added bin/sabotages/SabotageReactor.class
Binary file not shown.
Binary file added bin/tasks/CalibrateDistr$1.class
Binary file not shown.
Binary file added bin/tasks/CalibrateDistr$2.class
Binary file not shown.
Binary file added bin/tasks/CalibrateDistr.class
Binary file not shown.
Binary file added bin/tasks/Card$1.class
Binary file not shown.
Binary file added bin/tasks/Card.class
Binary file not shown.
Binary file added bin/tasks/ClearOxygen$1.class
Binary file not shown.
Binary file added bin/tasks/ClearOxygen.class
Binary file not shown.
Binary file added bin/tasks/Energy$1.class
Binary file not shown.
Binary file added bin/tasks/Energy.class
Binary file not shown.
Binary file added bin/tasks/Meteor$1.class
Binary file not shown.
Binary file added bin/tasks/Meteor.class
Binary file not shown.
Binary file added bin/tasks/Rabbish$1$1.class
Binary file not shown.
Binary file added bin/tasks/Rabbish$1.class
Binary file not shown.
Binary file added bin/tasks/Rabbish.class
Binary file not shown.
Binary file added bin/tasks/Reactor$1$1.class
Binary file not shown.
Binary file added bin/tasks/Reactor$1$2.class
Binary file not shown.
Binary file added bin/tasks/Reactor$1.class
Binary file not shown.
Binary file added bin/tasks/Reactor$2.class
Binary file not shown.
Binary file added bin/tasks/Reactor$3.class
Binary file not shown.
Binary file added bin/tasks/Reactor$4.class
Binary file not shown.
Binary file added bin/tasks/Reactor.class
Binary file not shown.
Binary file added bin/tasks/Refuel$1.class
Binary file not shown.
Binary file added bin/tasks/Refuel.class
Binary file not shown.
Binary file added bin/tasks/Scan$1.class
Binary file not shown.
Binary file added bin/tasks/Scan$2.class
Binary file not shown.
Binary file added bin/tasks/Scan.class
Binary file not shown.
Binary file added bin/tasks/Shield$1.class
Binary file not shown.
Binary file added bin/tasks/Shield.class
Binary file not shown.
Binary file added bin/tasks/ShipWay$1.class
Binary file not shown.
Binary file added bin/tasks/ShipWay.class
Binary file not shown.
Binary file added bin/tasks/StabilizeDrive$1.class
Binary file not shown.
Binary file added bin/tasks/StabilizeDrive.class
Binary file not shown.
Binary file added bin/tasks/StabilizeWay$1.class
Binary file not shown.
Binary file added bin/tasks/StabilizeWay.class
Binary file not shown.
Binary file added bin/tasks/UnlockManifold$1.class
Binary file not shown.
Binary file added bin/tasks/UnlockManifold.class
Binary file not shown.
Binary file added bin/tasks/Upload_Download$1.class
Binary file not shown.
Binary file added bin/tasks/Upload_Download.class
Binary file not shown.
Binary file added bin/tasks/Wiring$1.class
Binary file not shown.
Binary file added bin/tasks/Wiring.class
Binary file not shown.
8 changes: 7 additions & 1 deletion src/amongUs/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.bukkit.Location;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.scheduler.BukkitRunnable;

import game.Lobby;
import game.LobbySign;
Expand All @@ -27,7 +28,12 @@ public static void init() {
gameConfig.mkdirs();

loadConfigs();
loadLobby();
new BukkitRunnable() {

@Override
public void run() {loadLobby();}

}.runTaskLater(Main.plugin, 10);

}

Expand Down
7 changes: 1 addition & 6 deletions src/game/Lobby.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,7 @@ public Lobby(Location loc, String name, FileConfiguration defaultConfig) {
obj.setDisplayName(Messages.configMess);
obj.getScore(Messages.notGame).setScore(0);

Bukkit.getScheduler().runTaskLater(Main.plugin, new Runnable() {

@Override
public void run() {createGame(defaultConfig);}

}, 10);
createGame(defaultConfig);

Bukkit.getScheduler().runTaskTimer(Main.plugin, new Runnable() {

Expand Down

0 comments on commit 2ce475f

Please sign in to comment.