Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Origin-OnSet/Onset_Essential
https://github.com/Origin-OnSet/Onset_Essential
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/Origin-OnSet/Onset_Essential
- Owner: Origin-OnSet
- License: mit
- Created: 2020-06-30T21:37:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-03T11:19:18.000Z (about 4 years ago)
- Last Synced: 2024-06-20T18:34:32.054Z (5 months ago)
- Language: Lua
- Size: 37.1 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-onset - Onset_Essential - A permission manager package with player and admin commands. (Packages and Plugins / Other packages)
README
# Onset_Essential
Essential is a permission manager package with player and admin commands.## How to install
- Edit your server_config.json and add "Onset_Essential in the packages section before the files which require it:
```json
"packages": [
"Onset_Essential"
],
```
- Import the package on top of the files to initialize Onset_Weapon_Drop using:
```lua
local Essential = ImportPackage("Onset_Essential")
```## Global Configuration
- Edit Global_Config.lua
- Change SERVER_OWNER_STEAM_ID_64 value by you owner steam id 64 [SteamIdFinder.com](https://steamidfinder.com/)
```luaSERVER_OWNER_STEAM_ID_64 = "76561198154401761" -- HAVE ALL PERMISSION
DEFAULT_KICK_MESSAGE = "Your have ben kick frome the server !"
DEFAULT_BAN_MESSAGE = "Your have ben ban frome the server !"
DEFAULT_WHITE_LITS_KICK_MESSAGE = "Your are not in the white list of the server !"WHITE_LIST = false -- [true] = only player on white list can be join
USE_DEFAULT_CHAT = false -- [true] = no prefix groupe and chat gestion by essentialDEFAULT_SPAWN_POINT = {0, 0, 1700}
```
## Group Configuration
- Edit Group_Config.lua
```lua
GROUP_LIST = {
Administrator = {
default = false,
prefixChat = '[>Administrator>]>',
permission = {
"essential.ban",
"essential.unban"
},
inheritance = "Moderator"
},
Moderator = {
default = false,
prefixChat = '[>Moderator>]>',
permission = {
"essential.kick",
"essential.kick.all",
"essential.white_list.see",
"essential.white_list.add",
"essential.white_list.remove",
"essential.heal",
"essential.armor",
"essential.god",
"essential.mute"
},
inheritance = "Helper"
},
Helper = {
default = false,
prefixChat = '[>Helper>]>',
permission = {
"essential.message.seeadmin",
"essential.groupe.list",
"essential.groupe.permission.list",
"essential.groupe.player.list"
},
inheritance = "VIP"
},
VIP = {
default = false,
prefixChat = '[>VIP>]>',
permission = {
"essential.vehicle",
"essential.weapon"
},
inheritance = "Player"
},
Player = {
default = true,
prefixChat = '[>Player>]>',
permission = {
"essential.ping",
"essential.message.sendadmin"
},
inheritance = ""
}
}
```## Permission list
```lua
essential.kill
essential.suicideessential.tp.pos
essential.tp.to
essential.tp.all
essential.tp.posessential.spawn
essential.setspawnessential.ban
essential.unban
essential.banipessential.kick
essential.kickallessential.white_list.see
essential.white_list.add
essential.white_list.removeessential.vehicle
essential.weapon
essential.heal
essential.armor
essential.god
essential.mute
essential.pingessential.groupe.add.player
essential.groupe.remove.player
essential.groupe.list
essential.groupe.permission.list
essential.groupe.player.list
```## Function
```lua
PLAYER_BAN(player, reason) -- ban player
PLAYER_UNBAN(steamId) -- unban player with steamId64
GET_PLAYER_IS_BAN(steamId) -- return true if player is banADD_PLAYER_TO_WHITE_LIST(steamId) -- add player to white list
REMOVE_PLAYER_TO_WHITE_LIST(steamId) -- remove player from white list
GET_PLAYER_WHITE_LIST(steamId) -- return true if player is in the white listPLAYER_HAVE_PERMISSION(player,permission) -- return true if player have permission
GROUP_HAVE_PERMISSION(group, permission) -- return true if group have permission
ADD_PLAYER_TO_GROUP(player, group) -- add player to group
REMOVE_PLAYER_TO_GROUP(player) -- set player groups to defaultGET_PLAYER_EXIST(player) -- return true if player connect at least once
GET_PLAYER_GROUP(player) -- return player group
```## Package Commands
```
/ban [player] ([reason])
/unban [steamId 64]/kick [player] ([reason])
/kick_all ([reason])/white_list -- return all player on the white list
/white_list_add [player]
/white_list_remove [player]/tp_pos [x] [y] [z]
/tp_to [player]
/tp_all/get_pos -- return x, y, z possition
/ping
/god
/vehicle [vehicle Id]
/weapon [weapon Id]
/armor ([player])
/heal ([player])
/kill [player]
/suicide/add_player_group [player] [group]
/remove_player_group [player]
/group_list
/group_permission_list [group]
/group_player_list [group]
```## Discord
Join Origin [Discord](https://discord.gg/MDEwtKr) server now !## License
This project is licensed under the [MIT](https://choosealicense.com/licenses/mit/) License