-
Notifications
You must be signed in to change notification settings - Fork 0
Custom Flag Spec
This spec isnt a "spec" but a way for you to create any flag spec you want.
One example is like : untradeable spec, which prevent people to trade their pokemon. Here, untradeable is a flag spec.
Actually, you can create flag spec only for MATCHING purpose. Thats mean that any plugin which use spec support will return true if the pokemon have this flag spec.
You can add any flag spec you want, they will be created on server start.
The configuration looks like this :
# List of spec flag you wanna create. Be carefull that the flag isnt already used by another plugin! [default: ]
S:specflags <
>
Feel free to add like flag spec like this :
# List of spec flag you wanna create. Be carefull that the flag isnt already used by another plugin! [default: ]
S:specflags <
mark1
mark2
>
Then, you can spawn or give a pokemon with the flag by the following commands :
/pokespawn Magikarp mark1
/pokegive Flashback083 Magikarp mark2
So what kind of use for that flag spec creation ?
Atm, i can provide one good example of how use it, but it can maybe be used in another feature which can be possible in the future, or depend of the plugin.
One idea is that you can combine it with MoreDrops plugin, which is a plugin which allow you to give custom drops when a wild pokemon is defeated.
If you set in the config the mark1 spec, then only pokemon which have this flag will be allowed to drop the item you want.
I hope you see what i mean by that !