#idkname

1 messages · Page 1 of 1 (latest)

mortal leaf
#

How do i make a license key so only if you have a valid one it accepts it. I mainly want it so my plugin isn't distributed.

marble garnetBOT
#

<@&987246652869971988> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#
TJ-Bot
How do i make a license key so only if you have a valid one it accepts it. I mainly want it so my plugin isn't distributed.

You can create a simple license key system for your Minecraft plugin by generating a unique key and requiring users to input it in order to access the plugin. Here's a basic outline of how you can implement this:

  1. Generate a unique license key for each user who purchases your plugin. This can be done manually or using an algorithm to create random keys.

  2. In your plugin code, add a check to verify the user's inputted license key against the list of valid keys you've generated. If the key matches, grant access to the plugin features.

  3. To prevent unauthorized distribution of your plugin, consider obfuscating your code or implementing additional security measures to make it harder for users to reverse engineer or copy your plugin.

  4. Update and rotate license keys periodically to maintain control over who has access to your plugin.

By implementing a simple license key system, you can ensure that only users with valid keys can access your Minecraft plugin, helping protect your work from being distributed without authorization.

#
TJ-Bot
I want the license key 1 time use and allocates to the player. and lets say you get a new premium from online and install it on your server and execute the commands it should work as it knows you've u

sed the license key once. This way, players can enjoy the benefits of premium features without having to constantly re-enter the license key.

To achieve this, you can create a system that checks if a license key has been used before and if it has, allocate it to the player's account for a one-time use. This can be done by storing the used license keys in a database and checking against it when a new premium feature is installed.

Once the system recognizes that the player has used the license key before, it can automatically grant them access to the premium features without requiring them to enter it again. This seamless experience will enhance user satisfaction and streamline the process of accessing premium content on your server.

Overall, implementing a one-time use license key system will not only improve user experience but also ensure that players are able to enjoy premium features hassle-free. By automating this process, you can save time and effort for both players and administrators on your server.

mortal leaf
#

Yeah i haven't done this before can a real human help me on this?

crimson slate
#

the key itself can be anything. for example a randomly generated UUID

#

as long as ur server knows about it, it works

#

stuff becomes tricky if u want it to also work offline (for a certain amount of time), perhaps tie it to hardware so it cant be shared and used by others. and if u want to ensure that people cant simply hack out the "ask server yes/no" part of the executable

mortal leaf
#

bruh i need a server

crimson slate
#

depending on the exact needs it is then probably best to use an existing solution instead of reinventing the wheel

mortal leaf
#

is there a different way

#

as i dont want to buy a server and keep it online 24/7 for keys to work and yeah

#

just want a simple thing to stop distribution

crimson slate
#

without an online-check people could simply modify the executable and hack ur checks out

mortal leaf
#

like decompile it or?

crimson slate
#

an executable is just a set of machine code instructions. u can just open it with a hex editor or similar and freely edit the code

#

and if its java, its even easier

mortal leaf
#

exe file your talking about

#

?

crimson slate
#

yes. but that also applies to whatever else ur using

mortal leaf
#

online i see exes are like impossible to decompile

crimson slate
#

as long as it happens on the users machine only, they have full control and could edit everything if they want and know how to

#

u havent really gone into details yet. so im guessing a lot when it comes to what ur doing and what u want and need

mortal leaf
#

well what do you advise i do to stop distribution

#

just a simple plugin

crimson slate
#

plugin for what

mortal leaf
#

server stuff like do yk essentials

crimson slate
#

what?

mortal leaf
#

bruh

#

basically it has built in stuff

#

im prob gonna have custom plugins then

crimson slate
#

what has built in stuff?

#

are u making a game? a minecraft mod? a slack plugin? a website?

mortal leaf
#

like when you start the server theres custom commands you can use the plugin provides

#

plugin

crimson slate
#

please explain ur usecase in more detail

#

plugin for what

mortal leaf
#

minecraft

#

intellij

#

im using

crimson slate
#

so u want to sell a plugin and want to avoid others being able to use it without paying?

#

or what

#

ur being super vague. its really hard for me to suggest anything like that

#

please elaborate

mortal leaf
#

like lets say someone buys the plugin

#

then as soon as they buy it they distribute it or resell it

#

and even if i make a tos or something the person does not care

crimson slate
#

okay. so its about protecting the plugin itself

#

not any ingame stuff or similar

#

well yeah. so without any online service u cant make this really safe.
u can do some efforts but anyone with some knowledge on this topic can easily hack it out

#

how is the plugin distributed? as exe? as jar? sth else?

mortal leaf
#

its a plugin jar file. by distribue i mean someone just copys the plugin and gives it to their friend or smth.

fathom trellis
#

Unless you have a server that makes sure that a single license is only in use by one user at a time, the guy distributing it could just share their license key

#

And it's generally just very easy to bypass the check unless you have actual online services that you can block