Jump to content

Iggi666

Members
  • Posts

    2
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Iggi666's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I tried to use this. For example: Timer timer=new Timer(1000,new ActionListener(){ public void actionPerformed(ActionEvent ev) { if(Minecraft.getMinecraft().getIntegratedServer() != null){ System.out.println("123"); }else{ System.out.println("321"); } } }); Timer timer=new Timer(1000,new ActionListener(){ public void actionPerformed(ActionEvent ev) { if(Minecraft.getMinecraft().isSingleplayer()){ System.out.println("123"); }else{ System.out.println("321"); } } }); Timer timer=new Timer(1000,new ActionListener(){ public void actionPerformed(ActionEvent ev) { if((Minecraft.getMinecraft().isIntegratedServerRunning()){ System.out.println("123"); }else{ System.out.println("321"); } } }); Always output is "321". When Im playing on server, or in singleplayer or just looking on Menu) I call timer in public void load(FMLInitializationEvent event).
  2. Hello. How do I know if the player is on the server? I use timer and I want to check every 10 seconds if player is on the server. It does not matter which server. Mod is Client side only.
×
×
  • Create New...

Important Information

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