Giter VIP home page Giter VIP logo

Comments (12)

yuko1101 avatar yuko1101 commented on June 24, 2024

You can attach items with <itemId>:<amount>.
Try this command, /mail 102:100 hello

from lunarcore.

QSlotus avatar QSlotus commented on June 24, 2024

谢谢,那么我该如何使用/mail指令获取自定义遗器呢?
比如说,我需要使用/mail获取一个自定义遗器。如果用/give来获取它指令是 /give 61054 lv15 s4 4:1 5:2 8:2 9:4


Thanks a lot, so how do I get a custom holy relic using the /mail command?
Let's say I need to get a custom holy relic using /mail. If I use /give to get it the command is /give 61054 lv15 s4 4:1 5:2 8:2 9:4

from lunarcore.

QSlotus avatar QSlotus commented on June 24, 2024

Also, how do I change the title of a message sent using /mail so that it is not Test?
image

from lunarcore.

yuko1101 avatar yuko1101 commented on June 24, 2024

The title is hardcoded in MailCommand, so you cannot change the title with /mail.
And as for relic as attachment seems to be partly impossible since mail attachments cannot have substats info atleast.

from lunarcore.

yuko1101 avatar yuko1101 commented on June 24, 2024

I tried to attach this relic (can be reproduce by running /give @10001 61043 s5 2:1 4:1 5:1 7:6 lv15 -maxsteps)
image

The mail I received
image

Attached item
image

correct mainstat but not for substats

from lunarcore.

yuko1101 avatar yuko1101 commented on June 24, 2024

oh my bad, its also correct for substats

from lunarcore.

yuko1101 avatar yuko1101 commented on June 24, 2024

TL;DR: You can send custom relic with custom plugins but not with /mail.

You can't see the substats before you take attachments since client does not have substats data, but process of sending items is handled on the server, so it have nothing to do with proto.

from lunarcore.

yuko1101 avatar yuko1101 commented on June 24, 2024

I just created a plugin for this. https://github.com/yuko1101/CustomMailPlugin
Put the plugin jar into plugins folder and restart server.
Then run /cmail A mail with a relic | You | Here is a relic for you! $(61043 s5 2:1 4:1 5:1 7:6 lv15 -maxsteps).

from lunarcore.

QSlotus avatar QSlotus commented on June 24, 2024

Thank you! The problem has been solved. By the way, how can I use the serverOptions.defaultPermissions field in config.json to restrict player permissions? For example, I only want them to use the /help, /give, /giveall commands and nothing else!

from lunarcore.

yuko1101 avatar yuko1101 commented on June 24, 2024

just remove "*" and put in "player.give" and "player.help"

from lunarcore.

QSlotus avatar QSlotus commented on June 24, 2024

Thank you! It worked properly.
Also, do you have any ideas about this issue ? (#74 )

from lunarcore.

QSlotus avatar QSlotus commented on June 24, 2024

And I'd like to ask, when will the skill tree feature and [swarm disaster] be fixed for the simulated universe?

from lunarcore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.