Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Checking when I close the game
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
Alesimula

Checking when I close the game

By Alesimula, June 21, 2014 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Alesimula    3

Alesimula

Alesimula    3

  • Creeper Killer
  • Alesimula
  • Members
  • 3
  • 117 posts
Posted June 21, 2014

I don't want to chack when it closes the client, but when i exit a world, is there a way to check that?

  • Quote

Actually i don't know what to write in this signature soooo.... anyway

Share this post


Link to post
Share on other sites

coolboy4531    66

coolboy4531

coolboy4531    66

  • Dragon Slayer
  • coolboy4531
  • Members
  • 66
  • 584 posts
Posted June 21, 2014

PlayerEvent.PlayerLoggedOutEvent

  • Quote

Share this post


Link to post
Share on other sites

Alesimula    3

Alesimula

Alesimula    3

  • Creeper Killer
  • Alesimula
  • Members
  • 3
  • 117 posts
Posted June 21, 2014

PlayerEvent.PlayerLoggedOutEvent

 

@SubscribeEvent

public void onPlayerLogout(PlayerEvent.PlayerLoggedOutEvent event)

{

PotionGeneric = new ItemGlacialPotion(0, false, 16777215).setPotionName("");

}

 

somehow it doesn't work anyway

  • Quote

Actually i don't know what to write in this signature soooo.... anyway

Share this post


Link to post
Share on other sites

Alesimula    3

Alesimula

Alesimula    3

  • Creeper Killer
  • Alesimula
  • Members
  • 3
  • 117 posts
Posted June 21, 2014

PlayerEvent.PlayerLoggedOutEvent

 

@SubscribeEvent

public void onPlayerLogin(PlayerEvent.PlayerLoggedInEvent event)

{

PotionGeneric = new ItemGlacialPotion(0, false, 16777215);

}

 

well... this worked instead

  • Quote

Actually i don't know what to write in this signature soooo.... anyway

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Bailym
      Cant Get a Config File Working 1.16.5

      By Bailym · Posted 4 minutes ago

      Having followed those instructions I am getting the same results.   It seems my lack of understanding of forge in general is the issue   Thanks for the advice, its been really helpful.   Just one final thing. If i were to disable recipes and creative tab entries as you suggested, would i do so inside the FMLCommonSetupEvent handler or some place else?   Thanks    
    • e2rifia
      (1.16.2) Making a new capability(2)

      By e2rifia · Posted 7 minutes ago

      I have a capability STATE_CAPABILITY in IHaveMana, of class IState. I want to take out the IState an entity has, probably using getCapability. As below. But, I couldn't find a way to convert LazyOptional<IState> to IState.   @Nullable     public static IState getIStates(Entity entityliving)     {         if (entityliving instanceof LivingEntity)             return (IState) entityliving.getCapability(IHaveMana.STATE_CAPABILITY, null).cast();         return null;     }   Should I give more detail?
    • diesieben07
      whenever I join a server it shows me this error

      By diesieben07 · Posted 27 minutes ago

      1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • diesieben07
      Cant Get a Config File Working 1.16.5

      By diesieben07 · Posted 28 minutes ago

      Git is not the right way to store worlds or other large files.   There is no such line in the repository you posted. I used the debugger and put a breakpoint in the FMLCommonSetupEvent handler. Then I used evaluate expression and ArmorConfig.COMMON.enableOakWood.get() was false, as expected.
    • gamer650xd
      whenever I join a server it shows me this error

      By gamer650xd · Posted 32 minutes ago

      crash-2021-01-16_21.37.09-client.txt
  • Topics

    • Bailym
      12
      Cant Get a Config File Working 1.16.5

      By Bailym
      Started 1 hour ago

    • e2rifia
      0
      (1.16.2) Making a new capability(2)

      By e2rifia
      Started 7 minutes ago

    • gamer650xd
      2
      whenever I join a server it shows me this error

      By gamer650xd
      Started 36 minutes ago

    • e2rifia
      4
      (1.16.2) How do I use onPlayerTick?

      By e2rifia
      Started 4 hours ago

    • kiou.23
      11
      [1.16] Custom Sign won't render

      By kiou.23
      Started 9 hours ago

  • Who's Online (See full list)

    • Redpo
    • Bailym
    • Ipsissimus418
    • Gabbyboy1233539
    • Lellian
    • loordgek
    • e2rifia
    • kreezxil
    • diesieben07
    • JackRaidenPH
    • qwepo
    • Caaruzo
    • Telmoun
    • st4s1k
    • Talp1
    • gamer650xd
    • LeoBeliik
    • Kikoz
    • Beethoven92
    • Pl00py_R
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Checking when I close the game
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community