This file contains hidden or 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
public class Player extends LivingEntity { | |
private ArrayList<String> permissions = new ArrayList<String>(); | |
//(Load the permissions, of course. I used Json and Yaml in two projects, but I'm sure you'll have something better) | |
public boolean hasPermission(string requestedPermission) { | |
if (permissions.contains("*")) //Is this correct in Java? I think it might be a fragment of C# | |
return true; |
This file contains hidden or 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
The following has been tested using SublimeText 2 BETA in Ubuntu. It may have to be changed for Windows (remove the | from \r|\n) | |
[ ]*. @version.*[\r|\n] |
This file contains hidden or 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
@echo off | |
echo Unfetch - A small script to delete your prefetch files | |
echo. | |
echo Author: Cruz Bishop ([email protected]) | |
echo Released into the public domain. | |
echo. | |
echo Please note that deleting your prefetch files is not recommended. | |
echo This may increase your boot and application loading time. | |
echo Please close this window if you do not want to clear your prefetch. | |
echo. |