-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added error message if SKYBLOCK.SK is not in the right folder
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# | ||
# ============== | ||
# reportfalsedirectory.sk | ||
# ============== | ||
# reportfalsedirectory.sk is part of the SKYBLOCK.SK functions. | ||
# ============== | ||
|
||
import: | ||
java.io.File | ||
|
||
# | ||
# > Event - on load | ||
# > Actions: | ||
# > Detects if this file is not in the right folder and reports it to the chat of | ||
# > the server to inform the server operator about it. Repeating the error every | ||
# > 10 seconds until the file is at the right spot, which stops the while loop. | ||
on load: | ||
while new File("plugins/Skript/scripts/SkyBlock/SKYBLOCK.SK/Functions/reportfalsedirectory.sk").exists() is false: | ||
broadcast "[SKYBLOCK.SK] Error occured: Files aren't at the supported location." | ||
broadcast "[SKYBLOCK.SK] Put the SkyBlock folder into the supported directory:" | ||
broadcast "[SKYBLOCK.SK] plugins/Skript/scripts/SkyBlock/SKYBLOCK.SK/..." | ||
broadcast "[SKYBLOCK.SK] plugins/Skript/scripts/SkyBlock/lang/..." | ||
broadcast "[SKYBLOCK.SK] plugins/Skript/scripts/SkyBlock/islands/..." | ||
broadcast "[SKYBLOCK.SK] plugins/Skript/scripts/SkyBlock/config/..." | ||
broadcast "[SKYBLOCK.SK] plugins/Skript/scripts/SkyBlock/addons/..." | ||
wait 10 seconds |