For the code see: https://bitbucket.org/D_Lanor/moulscrip ... 4d0915623e
How to use:
Select the player to be kicked in the AGE PLAYERS list (left side of KI) and type: /kick
You can add an optional PM chat message after the command to inform the kicked player.
- Example 1: /kick I regret to inform you that your presence is no longer required
- Example 2: /kick Eat this, you filthy scumbag!!!
You can only kick players from personal ages you own. You cannot kick players from public ages or city book ages (child ages).
The command does not allow kicking from Neighborhoods even if you are an owner.
The hard part was to make this work with sub ages, which is needed to allow kicking from the Er'cana City Silo/D'ni-Ashem'en (a sub age of Er'cana) and Ahnonay (which is in fact a sub age of the Ahnonay Cathedral). A sub age never has an owner, so the command checks if you are the owner of the main age before letting you kick anyone.
Delin and Tsogal are also sub ages. However, since they are sub ages of a neighborhood kicking is not allowed here, unless you happen to be the sole owner of the neighborhood in question.
As an additional feature this command also revokes all the existing age visitor invitations of the kicked player. This part does not require age ownership so do not fool around with the kick command lightly!
Unfortunately visitor revocation is not effective in MOULa because private links do not disappear until the banned visitor has logged out. That means kicked players will be able to return from the Nexus immediately and you may have to kick them repeatedly.
- With the exception of Neighborhood this was coded in a generalized way without using hard coded age names.
- This commit comes with a re-usable function for sub age checking (InSubAge).
- Development testing has been done on the Windring shard.
And remember... With great power comes great responsibility.
Let the fighting... I mean... discussions begin!