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
  • [Any Version] How to get server ip/gamemode (Hypixel)
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
jacrispys

[Any Version] How to get server ip/gamemode (Hypixel)

By jacrispys, January 13 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

jacrispys    0

jacrispys

jacrispys    0

  • Tree Puncher
  • jacrispys
  • Members
  • 0
  • 3 posts
Posted January 13 (edited)

Hi, I have been recently trying to code a mod for a gamemode on hypixel called skyblock, but I don't want the event to be called unless the player is on skyblock (if I can't check for skyblock I would check for hypixel) but im not sure how to go about this. Any help is greatly appreciated as I am mainly a spigot coder and have not worked as much with the forge api.

 

Edit: also would anyone happen to know a good place to learn how to make client mods? I have made armor/tools etc mods in the past from guides but am not sure where to start on client sided only.

Edited January 13 by jacrispys
  • Quote

Share this post


Link to post
Share on other sites

Babatunde    0

Babatunde

Babatunde    0

  • Tree Puncher
  • Babatunde
  • Members
  • 0
  • 15 posts
Posted January 14

Im not very familiar with client side mods but this should do the job:

 

returns true if player is in Creative:

Minecraft.getInstance().player.isCreative();

 

returns true if player is in Spectator:

Minecraft.getInstance().player.isSpectator();

 

returns String of  serverIP:

Minecraft.getInstance().getCurrentServerData().serverIP;

 

  • Quote

Share this post


Link to post
Share on other sites

ChampionAsh5357    165

ChampionAsh5357

ChampionAsh5357    165

  • World Shaper
  • ChampionAsh5357
  • Members
  • 165
  • 1038 posts
Posted January 14
4 hours ago, jacrispys said:

Hi, I have been recently trying to code a mod for a gamemode on hypixel called skyblock, but I don't want the event to be called unless the player is on skyblock (if I can't check for skyblock I would check for hypixel) but im not sure how to go about this. Any help is greatly appreciated as I am mainly a spigot coder and have not worked as much with the forge api.

This seems very much like cheating...

  • Quote

Share this post


Link to post
Share on other sites

jacrispys    0

jacrispys

jacrispys    0

  • Tree Puncher
  • jacrispys
  • Members
  • 0
  • 3 posts
Posted January 14
16 hours ago, ChampionAsh5357 said:

This seems very much like cheating...

The hypixel skblock community has many mods for the game such as skyblock addons and many others the server considers anything that dosen't cause you to move or click to be a legal mod, Im trying to create a gui with a timer for an event (villagers dying) but only want the event to run if you are on the correct server

  • Quote

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

    • diesieben07
      [Answered, not solved] Automated testing in Forge

      By diesieben07 · Posted 2 minutes ago

      You could probably write a custom JUnit runner to start up the game and run unit tests in FMLCommonSetupEvent or something (similar to how data generation works). but not sure how feasible this is.
    • diesieben07
      Projectile Entity is Invisible

      By diesieben07 · Posted 3 minutes ago

      Show more of your code.
    • diesieben07
      Description: Exception in server tick loop

      By diesieben07 · Posted 5 minutes ago

      1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • diesieben07
      Forge 1.12.2 Installing Bug

      By diesieben07 · Posted 5 minutes ago

      1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • diesieben07
      !!Keeps crashing during launch!!

      By diesieben07 · Posted 5 minutes ago

      Post the debug.log.
  • Topics

    • GenElectrovise
      2
      [Answered, not solved] Automated testing in Forge

      By GenElectrovise
      Started Thursday at 08:34 AM

    • CommandCore
      3
      Projectile Entity is Invisible

      By CommandCore
      Started February 26

    • ChocoCookies33
      1
      Description: Exception in server tick loop

      By ChocoCookies33
      Started 2 hours ago

    • LessyDoggy
      1
      Forge 1.12.2 Installing Bug

      By LessyDoggy
      Started 3 hours ago

    • Yourskillx2
      1
      !!Keeps crashing during launch!!

      By Yourskillx2
      Started 4 hours ago

  • Who's Online (See full list)

    • Choonster
    • samjviana
    • troublemaker_47
    • VecsonON
    • diesieben07
    • Pixelovski
    • ahoyTheCat
    • nunbak12
    • Aviator737
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [Any Version] How to get server ip/gamemode (Hypixel)
  • Theme

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