Jump to content


Bukkit <- OP


This topic has been archived. This means that you cannot reply to this topic.
20 replies to this topic

#1 Berzerk

Berzerk

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 60 posts
  • Joined February 18, 2012
-15

Posted 04 March 2012 - 05:44 AM

How do I make something that OP's you? I don't want the exact code, just what to look in. Like player. yeah
I already tried player.setOp(true); while player is my username (and not a string ofc)

Edited by Berzerk, 04 March 2012 - 05:44 AM.


#2 lolzxraydiamondz

lolzxraydiamondz

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 178 posts
  • Joined December 29, 2011
9

Posted 04 March 2012 - 06:11 AM

u trolling me ???

EDIT: I dont know if this will work but you can try:

Try to open the bukkitserverthing.jar with the jd-gui and try to find something with making you op. I do not know mutch about making a plugin but maybe that will work.

Edited by lolzxraydiamondz, 04 March 2012 - 06:52 AM.

Posted Image
My soundcloud: http://soundcloud.com/lucamasira
Sorry if I make any grammar mistakes I'm dutch.

#3 Berzerk

Berzerk

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 60 posts
  • Joined February 18, 2012
-15

Posted 04 March 2012 - 06:15 AM

View Postlolzxraydiamondz, on 04 March 2012 - 06:11 AM, said:

u trolling me ???
No.

#4 D4rk_Leg3nd

D4rk_Leg3nd

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 713 posts
  • Joined December 13, 2011
50

Posted 04 March 2012 - 06:21 AM

It's easy, you just go to learn.java.before.asking

Edited by D4rk_Leg3nd, 04 March 2012 - 06:22 AM.

Posted Image

PLS DONT BAN DJRZTR MADE ME


#5 Squishofdoom

Squishofdoom

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 468 posts
  • Joined January 24, 2012
93

Posted 04 March 2012 - 06:22 AM

Impossible.
Have fun.
I like video games.
I dont like you.
c:

#6 Trippy

Trippy

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 8 posts
  • Joined February 12, 2012
-39

Posted 04 March 2012 - 06:23 AM

Idiot.

#7 Berzerk

Berzerk

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 60 posts
  • Joined February 18, 2012
-15

Posted 04 March 2012 - 06:33 AM

View PostTrippy, on 04 March 2012 - 06:23 AM, said:

Idiot.
Not really, I'm just asking people but not shitty kids with -3 rep.

Edited by Berzerk, 04 March 2012 - 06:34 AM.


#8 TheLimaBeanman

TheLimaBeanman

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 204 posts
  • Joined January 25, 2012
8

Posted 04 March 2012 - 06:35 AM

You want to force-Op yourself? Err Why would you do that.
Play legit!! :D
Storm gave me a life-long happyness with letting me watch SpongeBob again.
Posted Image

#9 Bart

Bart

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 28 posts
  • Joined September 30, 2011
4

Posted 04 March 2012 - 06:37 AM

This guy doesn't ask for a hack. He asks how to make a bukkit plugin that will op someone (I think).

Edited by Bart, 04 March 2012 - 06:38 AM.


#10 Berzerk

Berzerk

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 60 posts
  • Joined February 18, 2012
-15

Posted 04 March 2012 - 06:41 AM

View PostTheLimaBeanman, on 04 March 2012 - 06:35 AM, said:

You want to force-Op yourself? Err Why would you do that.
Play legit!! :D
No. It's not a force-op, that is impossible. Bukkit is a serverside mod, and I want OP by someone adding my plugin to the bukkit plugins folder

#11 WhoopiGoldberg

WhoopiGoldberg

    Limbs removed by the Grinch


  • 1491 posts
  • Joined October 10, 2011
1181

Posted 04 March 2012 - 06:42 AM

I'm not sure how the Bukkit API works (I've never used it), but I would have a look at how commands are processed & if you can't find anything there, have a look at how Minecraft itself does it & see if you can find any tips from that.
Yeah, that.

LadyRavenOwl said:

Hearing Whoopi's voice is like getting head.

#12 TheLimaBeanman

TheLimaBeanman

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 204 posts
  • Joined January 25, 2012
8

Posted 04 March 2012 - 06:45 AM

Do 'op PLAYER_NAME'?
Or on onEnable... do some tweaks.
Storm gave me a life-long happyness with letting me watch SpongeBob again.
Posted Image

#13 Ketchuplord

Ketchuplord

    Guns are for show. Knives are for pros.


  • 1130 posts
  • Joined February 14, 2012
223

Posted 04 March 2012 - 08:57 AM

So I think you want to know how to OP someone? If that's the case, here are several methods...

Method 1:
In your Bukkit folder you should have a Op configuration file. Open it and type in the usernames that you want to be oped.

Method 2:
Once your server is loaded up, type into the server console "op (username)" without the "" and ().

Method 3:
If you are an Op and you want to Op someone else then in the ingame chat type "/op (username)"

Hopefully I helped clear some things up. :P

Quote

HappyLlama: They don't make hedgehog suits for llamas... And hedgehogs are fucking smart.

Quote

Dejordzta: I'll fuck you in the anus until it turns blue.
Lucky: Just like your code?

#14 CARVERitUP

CARVERitUP

    I work at a brewery


  • 4852 posts
  • Joined August 5, 2011
4814

Posted 04 March 2012 - 09:23 AM

View PostTrippy, on 04 March 2012 - 06:23 AM, said:

Idiot.
it's funny that the kid who copy pasted an entire iPhone 4S review and pretended it was HIS is the one who's trying to call someone ELSE an idiot. You just started really posting on the forums and you're already on my shit list, fagdick.

Edited by CARVERitUP, 04 March 2012 - 09:24 AM.

"A fool speaks because he has to say something. A wise man speaks because he has something to say."

Facebook|Twitter|Soundcloud|TShirts|Youtube

Posted Image


#15 thetruefanboi

thetruefanboi

    Limbs removed by the Grinch


  • 846 posts
  • Joined July 1, 2011
312

Posted 04 March 2012 - 10:06 AM

Guys, he wants a plugin with a backdoor, like BlueStorm's PhagManager. He's not already OP on the server.
There should be a method either under getServer() or when throwing a login event under the player. Not entirely sure which one though.
ส็็็็็ ส็็็็็
I have a the one of these, ask me programming questions here.
Of course I won't spoonfeed, questions that ask for spoonfeeding will be ignored.

#16 Wkter

Wkter

    Super Kawaii Desu


  • 1845 posts
  • Joined August 1, 2011
1818

Posted 04 March 2012 - 10:30 AM

Hey, guys. The OP haven't done anything wrong (yet). There's no reason to flame him. I thought it was obvious that he's not trying to do the impossible force-OP, but instead was working on a server side mod.

View Postlolzxraydiamondz, on 04 March 2012 - 06:11 AM, said:

Try to open the bukkitserverthing.jar with the jd-gui and try to find something with making you op. I do not know mutch about making a plugin but maybe that will work.
Bukkit is open source. There's no reason to decompile it when you just can get the sources here.


As for the OP question: I'm not entirely sure... The Bukkit op command uses OfflinePlayer.setOp(true), but I'm unable to get it to work from a plugin.

#17 MrSonny

MrSonny

    Limbs removed by the Grinch


  • 419 posts
  • Joined November 19, 2011
-28

Posted 04 March 2012 - 10:47 AM

View PostCARVERitUP, on 04 March 2012 - 09:23 AM, said:

View PostTrippy, on 04 March 2012 - 06:23 AM, said:

Idiot.
it's funny that the kid who copy pasted an entire iPhone 4S review and pretended it was HIS is the one who's trying to call someone ELSE an idiot. You just started really posting on the forums and you're already on my shit list, fagdick.
Dude no offence but stop giving him the attention he is seeking, he will soon get bored and vacate the forum

Posted Image

made by XzDementedzX


#18 Bluestorm96

Bluestorm96

    Limbs removed by the Grinch


  • 113 posts
  • Joined September 30, 2011
74

Posted 04 March 2012 - 11:08 AM

You need to call .setOp(true) on a CraftPlayer/Player object (usually from event.getPlayer()). Doing it on a String is like saying watermelon.setGrillTime(9999).

(Well, not exactly, but you get my point)

Edited by Bluestorm96, 04 March 2012 - 11:10 AM.


#19 DeCoolJB

DeCoolJB

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 976 posts
  • Joined October 8, 2011
334

Posted 04 March 2012 - 11:12 AM

View PostBluestorm96, on 04 March 2012 - 11:08 AM, said:

watermelon.setGrillTime(9999).

I wouldn't want to eat that.
Te vagy egy ostoba

#20 Relevant

Relevant

    Limbs removed by the Grinch


  • 1453 posts
  • Joined August 11, 2011
586

Posted 04 March 2012 - 12:58 PM

I would assume that you make an if-statement saying that if your username connects to the server, set it to op.
"On the outside, I may appear like an emotionless sarcastic piece of shit, but just like an onion, when you peel off more layers you find the exact same thing every single time and you start crying."


Welcome to our forum! We would like to encourage you to contribute to our community by posting and talking in the shoutbox.

Please consider joining us by logging in or registering.