Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved how to can not disarmament ?

Comments in 'Plugin Development' started by musaichi, Oct 11, 2015.

  1. zombie_Power
    Offline

    zombie_Power Active Member

    Joined:
    Sep 7, 2015
    Posts:
    239
    Minecraft User:
    Zombie_Power
    that is onLoad.....
  2. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    onEnable AND onLoad are called when the plugin is loading - server is starting up - no players online... (Unless using /reload)
  3. zombie_Power
    Offline

    zombie_Power Active Member

    Joined:
    Sep 7, 2015
    Posts:
    239
    Minecraft User:
    Zombie_Power
    Well that was what I was thinking off, when you actually put the plugin in your ftp/sftp, and /reload the server, however, the main point was to give him the learner an idea of how Public Function works
    Hotshot_9930 likes this.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    /reload just disables the plugin and enables it again, and it does not reload the plugin's source.

    The default visibility of a class method (class function) is public so it is not necessary, but it is a popular code style to add the `public` modifier there to assure it.
    musaichi likes this.

Share This Page

Advertisement