mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-24 03:05:49 +01:00
Don't let Bungee run in dirs with ! in name.
Java uses ! to indicate a resource inside of a jar/zip/other container. Running Bungee from within a directory that has a ! will cause this to muck up.
This commit is contained in:
parent
87a64c3f3e
commit
65eba06980
@ -162,6 +162,9 @@ public class BungeeCord extends ProxyServer
|
||||
@SuppressFBWarnings("DM_DEFAULT_ENCODING")
|
||||
public BungeeCord() throws IOException
|
||||
{
|
||||
// Java uses ! to indicate a resource inside of a jar/zip/other container. Running Bungee from within a directory that has a ! will cause this to muck up.
|
||||
Preconditions.checkState( new File( "." ).getAbsolutePath().indexOf( '!' ) == -1, "Cannot use BungeeCord in directory with ! in path." );
|
||||
|
||||
System.setSecurityManager( new BungeeSecurityManager() );
|
||||
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user