Jump to content

SurMjölk

Members
  • Posts

    10
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

SurMjölk's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hi! I have a Forge-type mod (Not property of me) running on my server. I made a CraftBukkit plugin intended to do some stuff when the player reaches a certain int value in the mod. But the Bukkit forums says this is apparently not a bukkit question enough. This value can be easily calculated through getAlignment(sq); When I spoke to the mod author about this, he said that EntityPlayer should do the trick. However, I tried it and it returns an error and asks me to change the type of "pp" from EntityPlayer to sq. And that returns "sq cannot be resolved to a type". Is there a way to reobfuscate EntityPlayer to sq? Thanks in advance, Froshin
  2. Hi. I like cameracraft. It's nice. I guess I have to go forge then, since Bukkit cannot retrive "Sq" type players (EntityPlayer), and so I cannot use my desired method in Bukkit since it requires Sq. Still, problem isn't solved. This might help solving some stuff though.
  3. Is there nobody who can help me with this? Like, could someone declare it impossible without modfying the actual mod source? I doubt it is though, I highly doubt that...
  4. I have done that ages ago, but the bukkit player class doesn't include sq as far as I am aware. I'm pretty sure I tried going pure bukkit first but it didn't work. Currently referencing the MCPC jar, seems to be the best way since you don't have to worry about duplicates.
  5. Sorry, I was super tired and had school today so I went to sleep. I Just reference the zip, the actual mod itself. http://www.mediafire.com/?won3tywkkul6oju
  6. The mod is called LOTR mod. a. Iit did broadcast something when I killed a cow but not an orc. b. The mod has faction points. To return the value of a certain player, you'd want to use LOTRLevelData.getAlignment(player). I spoke to the mod author about this.
  7. @J15t98J Hi and thanks for your reply! Unfournately I cannot do that, because: a. Using the Bukkit class does not check for mod mob entities, or at least not the ones in the mod I am using. Is there a way to do this? b. The method I want to use requires me to have the obfuscated "sq" Player. Can you get this through bukkit aswell? Because I get an error when I try to import the sq class.
  8. @SanAndreasP Hi and thank you for your reply! I'm completely new to this. I could, however, do what you asked for already, from looking at code snippets I found over this help section forum But! The problem is that I'm not sure how to define the player at all. And this whole obfuscation process confuses me, I'd like to learn more about it - If it is relevant to my problem. Could you maybe write me a sample code on how to handle what I asked for? That would be ace! I know it's on a basic level but it's really this one thing I want to learn and I've been browsing for a soloution for quite a while today!
  9. Hi! I'm rather new to this, but I will try to be as straightforward as possible. (I did read the rules -- But this code snippet isn't really so big I should have to upload it elsewhere, right?) I'm developing a MCPC(Bukkit + Forge) server plugin. @ForgeSubscribe public void onAttackEntityEvent(AttackEntityEvent event){ Bukkit.getServer().broadcastMessage("You hit something!"); } My main question here is how I am to go about retrieving the player from this event. Right now it does not even broadcast any message. (I've imported the bukkit libraries aswell.) What I want to do is import the Player(Attacker) from this event, and then use it in another method from a mod library. Then, I want to put the player in a scoreboard team. Also, I think I need the obfuscated EntityPlayer, "sq". Is this possible? Thanks in advance, SurMjölk Important edit, or TL;DR Edit: //////////// It's probably important to note that my main concern is not being able to retrive the player as "Sq player" or "EntityPlayer", which are two of what seems to be applicable players for the mod method I'm trying to use. ///////////
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.