WorldEdit

WorldEdit

43M Downloads

more functions for script engine

hellow554 opened this issue ยท 5 comments

commented

I want to do something with the ScriptEngine, but sometimes it makes me impossible to what i want.
That's why, i want three new functions in /Worldedit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java

public Player getRealPlayer() {
    return this.player;     
}

public World getRealWorld() {
    return this.player.getWorld();
}

public Server getRealServer() {
    return this.player.getServer();
}

i'd really love to see them. Thanks!

commented

Did it? But I think the sense of this issues/pull request system is to ask for new functions, so that everybody have them. I need them esspecially for some functions where you need to handle the player, but i didnt find any function in original, that does this....

commented

Fork and patch it yourself?

commented

which is why you do it yourself and pull requet, because no one else cba to do something so mundane

commented

@punkkeks the idea is that you will fork the code here, using the fork button in the upper right hand corner, and edit the code yourself so that it works the way you want. Then you press the pull request button, and the code will be reviewed and then (possibly) included in the source.

commented

Oh thanks :) Thats the way github works.
Thanks b1naryth1ef.... ?! Don't steal my data! :)