Mockup plugin, need help on making it a reality

Discussion in 'Plugin Development' started by Gonzo0193, Feb 27, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Gonzo0193

    So basically, for learning purposes and personal use i want a plugin that will enable godmode on login.
    So far i have thought up something like this:
    Code:
    On player joining
    set int god = 1
    
    on player quiting
    set int god = 0
    
    (in entity listner)
    {on damage
    if int god == 1
    cancel event
    else if god != 0 || god != 1
    set god == 1
    else
    }
     
    I have been scouring source codes and the java docs trying to figure out how to achieve this, and with no up to date resources like tutorials or plugin structures its not really got me anywhere ^^.
    I appreciate any help i get, thanks :)
     
  2. Offline

    Plague

    Godmode is usually done separately from players, i.e. there's no on login needed. see PlgNoHealth (link in sig).
     
  3. Offline

    blaatz0r

Thread Status:
Not open for further replies.

Share This Page