rename mod to antipvp to be in consonance with "anti" mods
This commit is contained in:
parent
4ed24e2c18
commit
47efc0f2cd
29
README.md
29
README.md
@ -1,4 +1,4 @@
|
||||
minetest mod pvpinvul
|
||||
minetest mod antipvp
|
||||
=====================
|
||||
|
||||
Provides pvp invulnerability to players by privilegie.
|
||||
@ -6,14 +6,14 @@ Provides pvp invulnerability to players by privilegie.
|
||||
Information
|
||||
-----------
|
||||
|
||||
This mod is named `pvpinvul` and add a priv that give PvP(Player vs Player) invulnerability.
|
||||
This mod is named `antipvp` and add a priv that give PvP(Player vs Player) invulnerability.
|
||||
|
||||
![screenshot.png](screenshot.png)
|
||||
|
||||
|
||||
## tech information
|
||||
|
||||
This is a fork from original https://notabug.org/gnuhacker/pvpinvul if still exits.
|
||||
This is a fork from original https://notabug.org/gnuhacker/antipvp if still exits.
|
||||
|
||||
Main difference are:
|
||||
|
||||
@ -24,14 +24,14 @@ we avoid the pain of upgrades with stupids reasons by developers
|
||||
|
||||
It provides a way to grant pvp god privilegies agains pvp(Player vs Player) battles:
|
||||
|
||||
`/grant <player> pvpinvul`
|
||||
`/grant <player> antipvp`
|
||||
|
||||
The `PVP` term means player versus player.
|
||||
|
||||
### Download
|
||||
|
||||
Can be downloaded from https://codeberg.org/minenux/minetest-mod-pvpinvul and
|
||||
must be named as `pvpinvul`.
|
||||
Can be downloaded from https://codeberg.org/minenux/minetest-mod-antipvp and
|
||||
must be named as `antipvp`.
|
||||
|
||||
Original work can be downloaded from https://notabug.org/gnuhacker/pvpinvul if still exits.
|
||||
|
||||
@ -41,28 +41,29 @@ Original work can be downloaded from https://notabug.org/gnuhacker/pvpinvul if s
|
||||
You can set those configurations in the mod tab at the gui, or added those option
|
||||
to the minetest config file at game directory, to the main global config file.
|
||||
|
||||
| config option | type | default | description |
|
||||
| ------------- | ---- | ------- | ----------- |
|
||||
| pvpinvul_kill_hitter | bool | false | if enable, players that hit will be killed. |
|
||||
| pvpinvul_admin_privs | bool | true | if enable, the admin of the server will be automaticaly with pvpinvul privilegies. |
|
||||
| pvpinvul_send_to_all | bool | true | if enable, when a hitter try to hurt to a invulnerable player, send the message to all players. |
|
||||
| config option | type | default | description |
|
||||
| -------------------- | ---- | ------- | ----------- |
|
||||
| pvpinvul_kill_hitter | bool | false | if enable, players that hit will be killed. |
|
||||
| pvpinvul_admin_privs | bool | true | if enable, the admin of the server will be automaticaly with antipvp privilegies. |
|
||||
| pvpinvul_send_to_all | bool | true | if enable, when a hitter try to hurt to a invulnerable player, send the message to all players. |
|
||||
|
||||
For more info check https://codeberg.org/venenux/venenux-minetest/src/branch/master/tutorials/manage-minetest-configuration.md
|
||||
|
||||
## License
|
||||
|
||||
Copyright (C) 2022 PICCORO Lenz McKAY
|
||||
Copyright (C) 2021 Sandro Del Toro De Ana
|
||||
|
||||
Pvpinvul is free software: you can redistribute it and/or modify
|
||||
antipvp is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
any later version.
|
||||
|
||||
Pvpinvul is distributed in the hope that it will be useful,
|
||||
antipvp is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Pvpinvul. If not, see <https://www.gnu.org/licenses/>.
|
||||
along with antipvp. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
|
65
README.org
65
README.org
@ -1,65 +0,0 @@
|
||||
minetest mod pvpinvul
|
||||
=====================
|
||||
|
||||
Provides pvp invulnerability to players by privilegie.
|
||||
|
||||
Information
|
||||
-----------
|
||||
|
||||
This mod is named `pvpinvul` and add a priv that give PvP(Player vs Player) invulnerability.
|
||||
|
||||
![screenshot.png](screenshot.png)
|
||||
|
||||
|
||||
## tech information
|
||||
|
||||
This is a fork from original https://notabug.org/gnuhacker/pvpinvul if still exits.
|
||||
|
||||
Main difference are options to configure the sending of message (to all players or only involved),
|
||||
backguard compatibility and security fixeds.
|
||||
|
||||
It provides a way to grant pvp god privilegies agains pvp(Player vs Player) battles:
|
||||
|
||||
`/grant <player> pvpinvul`
|
||||
|
||||
The `PVP` term means player versus player.
|
||||
|
||||
### Download
|
||||
|
||||
This is a fork to mantain up to date and in sync with backguard compatibilty,
|
||||
can be downloaded from https://codeberg.org/minenux/minetest-mod-pvpinvul and
|
||||
must be named as `pvpinvul`.
|
||||
|
||||
Original work can be downloaded from https://notabug.org/gnuhacker/pvpinvul if still exits.
|
||||
|
||||
|
||||
### Configuration
|
||||
|
||||
You can set those configurations in the mod tab at the gui, or added those option
|
||||
to the minetest config file at game directory, to the main global config file.
|
||||
|
||||
| config option | type | default | description |
|
||||
| ------------- | ---- | ------- | ----------- |
|
||||
| pvpinvul_kill_hitter | bool | false | if enable, players that hit will be killed. |
|
||||
| pvpinvul_admin_privs | bool | true | if enable, the admin of the server will be automaticaly with pvpinvul privilegies. |
|
||||
| pvpinvul_send_to_all | bool | true | if enable, when a hitter try to hurt to a invulnerable player, send the message to all players. |
|
||||
|
||||
For more info check https://codeberg.org/venenux/venenux-minetest/src/branch/master/tutorials/manage-minetest-configuration.md
|
||||
|
||||
## License
|
||||
|
||||
Copyright (C) 2021 Sandro Del Toro De Ana
|
||||
|
||||
Pvpinvul is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
any later version.
|
||||
|
||||
Pvpinvul is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Pvpinvul. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
@ -1 +1 @@
|
||||
PVP Invulnerability Privilege for players
|
||||
Anti PVP vulnerability Privilege for players
|
||||
|
23
init.lua
23
init.lua
@ -2,20 +2,20 @@
|
||||
|
||||
-- Copyright (C) 2021 Sandro Del Toro De Ana
|
||||
|
||||
-- This file is part of Pvpinvul Minetest Mod.
|
||||
-- This file is part of antipvp Minetest Mod.
|
||||
|
||||
-- Pvpinvul is free software: you can redistribute it and/or modify
|
||||
-- antipvp is free software: you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation, either version 3 of the License, or
|
||||
-- any later version.
|
||||
|
||||
-- Pvpinvul is distributed in the hope that it will be useful,
|
||||
-- antipvp is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with Pvpinvul. If not, see <https://www.gnu.org/licenses/>.
|
||||
-- along with antipvp. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
|
||||
@ -44,11 +44,11 @@ else
|
||||
end
|
||||
end
|
||||
|
||||
local kill_hitter = core.settings:get_bool("pvpinvul_kill_hitter") or false
|
||||
local kill_hitter = core.settings:get_bool("antipvp_kill_hitter") or false
|
||||
|
||||
local admin_privs = core.settings:get_bool("pvpinvul_admin_privs") or true
|
||||
local admin_privs = core.settings:get_bool("antipvp_admin_privs") or true
|
||||
|
||||
local send_to_all = core.settings:get_bool("pvpinvul_send_to_all") or true
|
||||
local send_to_all = core.settings:get_bool("antipvp_send_to_all") or true
|
||||
|
||||
-- compat with irc mod fork
|
||||
if core.get_modpath("irc") then
|
||||
@ -62,7 +62,7 @@ local privs_give_to_admin = false
|
||||
if admin_privs then privs_give_to_admin = true end
|
||||
|
||||
-- priv
|
||||
core.register_privilege("pvpinvul", {
|
||||
core.register_privilege("antipvp", {
|
||||
description = S("Invulnerable in PVP"),
|
||||
give_to_singleplayer = false,
|
||||
give_to_admin = privs_give_to_admin,
|
||||
@ -79,8 +79,8 @@ core.register_on_punchplayer(
|
||||
|
||||
local player_name = player:get_player_name()
|
||||
local hitter_name = hitter:get_player_name()
|
||||
local player_invul = core.check_player_privs(player_name, {pvpinvul=true})
|
||||
local hitter_invul = core.check_player_privs(hitter_name, {pvpinvul=true})
|
||||
local player_invul = core.check_player_privs(player_name, {antipvp=true})
|
||||
local hitter_invul = core.check_player_privs(hitter_name, {antipvp=true})
|
||||
|
||||
if player_invul then
|
||||
if kill_hitter and not hitter_invul then
|
||||
@ -94,6 +94,7 @@ core.register_on_punchplayer(
|
||||
else
|
||||
irc.saysec(player_name, hitter_name.." try hurt you")
|
||||
end
|
||||
minetest.log("error","[antipvp] "..hitter_name.." try hurt to "..player_name
|
||||
end
|
||||
return true
|
||||
end
|
||||
@ -101,4 +102,4 @@ core.register_on_punchplayer(
|
||||
end
|
||||
)
|
||||
|
||||
print("[MOD] pvpinvul loaded")
|
||||
print("[MOD] antipvp loaded")
|
||||
|
@ -1,4 +1,4 @@
|
||||
# textdomain: pvpinvul
|
||||
# textdomain: antipvp
|
||||
# author: Nathaniel Freeman
|
||||
|
||||
|
||||
|
2
mod.conf
2
mod.conf
@ -1,3 +1,3 @@
|
||||
name = pvpinvul
|
||||
name = antipvp
|
||||
optional_depends = irc
|
||||
description = PVP Invulnerability Privilege for players
|
||||
|
@ -1,9 +1,9 @@
|
||||
|
||||
# if enabled will Kill with one hit only when pvpinvul are grant
|
||||
pvpinvul_kill_hitter (Kill hitter to pvpinvul privilegies) bool false
|
||||
# if enabled will Kill with one hit only when antipvp are grant
|
||||
antipvp_kill_hitter (Kill hitter to antipvp privilegies) bool false
|
||||
|
||||
# if enable admin will be pvp invulnerable
|
||||
pvpinvul_admin_privs (Give automatically to the admin of server pvp invulnerable privs) bool true
|
||||
antipvp_admin_privs (Give automatically to the admin of server pvp invulnerable privs) bool true
|
||||
|
||||
# if enabled send the activity of hurt to invulnerable players to all the chats!
|
||||
pvpinvul_send_to_all (Send message to all the players and not only those involved) bool true
|
||||
antipvp_send_to_all (Send message to all the players and not only those involved) bool true
|
||||
|
Loading…
x
Reference in New Issue
Block a user