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
String group = RoyalCommands.permission.getPrimaryGroup(p); | |
if (group == null) | |
group = ""; | |
ConfigurationSection groups = plugin.homeLimits | |
.getConfigurationSection("groups"); | |
ConfigurationSection players = plugin.homeLimits | |
.getConfigurationSection("players"); | |
Integer limit; | |
if (players != null && players.contains(p.getName())) | |
limit = players.getInt(p.getName()); |
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 welcomer. | |
events.on("PlayerJoin", function(event) { | |
event.getPlayer().sendMessage("Welcome!"); | |
}); |
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
Transform t = ((Client) engine).getActivePlayer().getTransform(); | |
Vector3 forward = t.forwardVector(); | |
System.out.println(forward); | |
((Client) engine).getActivePlayer().translate(forward); |
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
@Command(aliases = { "+z" }, usage = "+z", desc = "Moves in the +Z direction relative to the camera") | |
public class MoveForwardZ { | |
@Executor(Platform.CLIENT) | |
public void moveForwardZ(CommandContext args, CommandSource source) throws CommandException { | |
System.out.println("asdf"); | |
Transform t = ((Client) engine).getActivePlayer().getTransform(); | |
Vector3 forward = t.forwardVector(); | |
System.out.println(forward); | |
((Client) engine).getActivePlayer().translate(forward); |
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
Point{null, 0.0, 0.0, 0.0} | |
Attempting to translate! | |
Point{null, 0.0, 0.0, 0.0} | |
Attempting to translate! | |
Point{null, 0.0, 0.0, 0.0} | |
Attempting to translate! | |
Point{null, 0.0, 0.0, 0.0} | |
Attempting to translate! | |
Point{null, 0.0, 0.0, 0.0} | |
Attempting to translate! |
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 void mouseMoved(int oldx, int oldy, int newx, int newy) { | |
//Get the amount of rotation from the camera | |
double rot = Math.atan2( | |
newy - client.getContainer().getHeight() / 2, | |
newx - client.getContainer().getWidth() / 2); | |
ClientPlayerRotateMessage message = new ClientPlayerRotateMessage(); | |
message.setMessage(rot); | |
client.getKryoClient().sendMessage(message); | |
} |
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
username = flask.request.form.get('username') | |
password = flask.request.form.get('password') | |
if not username: | |
return "Must provide username\n" | |
if not password: | |
return "Must provide password\n" | |
conn = sqlite3.connect(os.path.join(data_dir, 'users.db')) |
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
(function(e,h,i){function j(c){return c}function k(c){return decodeURIComponent(c.replace(l," "))}var l=/\+/g,d=e.cookie=function(c,b,a){if(b!==i){a=e.extend({},d.defaults,a);null===b&&(a.expires=-1);if("number"===typeof a.expires){var f=a.expires,g=a.expires=new Date;g.setDate(g.getDate()+f)}b=d.json?JSON.stringify(b):String(b);return h.cookie=[encodeURIComponent(c),"=",d.raw?b:encodeURIComponent(b),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}b=d.raw?j:k;a=h.cookie.split("; ");for(f=0;g=a[f]&&a[f].split("=");f++)if(b(g.shift())===c)return c=b(g.join("=")),d.json?JSON.parse(c):c;return null};d.defaults={};e.removeCookie=function(c,b){return null!==e.cookie(c,b)?(e.cookie(c,null,b),!0):!1}})(jQuery,document); | |
///// | |
// var id = 748890000; | |
(function() { | |
var id = parseInt(prompt("Enter a 5 digit number")) * 10000; | |
var interval = parseInt(prompt("Enter an interval in ms", "50")); | |
var going = 0; |
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
asdf |
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
[5/26/13 2:25:53 PM] René :3: Hello. | |
- Im the owner of a project called ProjectHyrule (www.project-hyrule.net). Basically, its a server that is zelda themed. I need a level system that involves skills. Heres the thing though, my entire server is dependable on Spout Legacy, and I need GUI's for everything. Im not sure if thats anything youre into making or not, if you are though, we can discuss this further, preferly on skype Im aware that my plugin is probably one of the more time consuming ones, so I will pay alot obviously. I'll include some minor information here of what the plugin involves, to give you an idea, and if you're up for it, ill give a detailed description of everything. | |
Anyway, basics would be: | |
Level System: 60 Levels. Gained by killing stuff, or a command that gives a user one level each time its used. | |
Skill tree: Important. This is where you can see all the skills and unlock them. This has a GUI to it, and you achieve skill points all the time, which you then put in different skills. | |
Actio |