Jump to content

CheckModFolder [1.7.10]


xpyropoops

Recommended Posts

I was wondering if there was a way to create a [1.7.10] server-side only mod where it registers a command such as /modfolder <player>. 

Once the sender runs the command, it will tell the sender what mods the target <player> has loaded in with, this message is already displayed on server-join anyways in the console logs, but I was wondering if there was a way to make this into a command.

Link to comment
Share on other sites

1.7.10 is no longer supported on this forum.

Update to a modern version of Minecraft to receive support.

 

If the target version is 1.12.2, I would do something like create an event subscriber for player join event and create a Map that records the player's mods (if that info is available in the event).

When the command is executed, just search up the player in the Map.

Keep in mind that the client can always lie about what mods are loaded, so the result might not be 100% reliable.

Edited by DavidM

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Link to comment
Share on other sites

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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