Skip to content

Commit

Permalink
forbid java/jar editing by scripts
Browse files Browse the repository at this point in the history
no plugin hacking 4 u
  • Loading branch information
mcmonkey4eva committed Dec 31, 2016
1 parent b842ddb commit e515673
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -47,6 +47,9 @@ public static boolean isSafeFile(File f) {
if (lown.contains("denizen/scripts/")) {
return false;
}
if (lown.endsWith(".jar") || lown.endsWith(".java")) {
return false;
}
return true;
}
catch (Exception ex) {
Expand Down

0 comments on commit e515673

Please sign in to comment.