https://github.com/dretax/Python-Plugins/tree/master/DeathMSG_version__ = '3.4'
You might want to remove that picture, Anyone can connect using that IP address and login with the RCON password displayed in the picture.every time I enter the server of this error attached, you tell me what it is?
our excuse, did not realize itYou might want to remove that picture, Anyone can connect using that IP address and login with the RCON password displayed in the picture.
EDIT: Blanked out the Rcon p/w for you.
Read the rest of this update entry...
- Lots of code fixes
- Update range.ini
- Update DeathMSGConfig
- Added an option which supports you to use BannedPeople's Inifile, so you can use only one ini instead of two.
Read the rest of this update entry...BannedPeople usage fixes.
3.5.1 Is the latest. It's also on my github and on fougerite.This fix is already fixed and ready to use as:: https://github.com/dretax/Python-Plugins/tree/master/DeathMSG
??
def On_PluginInit(self):
config = self.DeathMSGConfig()
v = int(config.GetSetting("Settings", "usebannedpeoplebanlist"))
if Plugin.GetPlugin("BannedPeople") is not None and v == 1:
methodname = "BannedPeopleIni"
pl = Plugin.GetPlugin("BannedPeople")
ClassName = BannedPeople.BannedPeople()
setattr(BannedPeople, "Plugin", pl)
self.method = getattr(ClassName, methodname)
self.bannedpeople = True
Util.ConsoleLog("DeathMSG by" + __author__ + " Version: " + __version__ + " loaded.", False)
That's what the code does. Shouldn't give any error at all.Isn't it wrong?
You assuming in line 31 (4 in this code) that I have BannedPeople directory. Well I don't have, what gives error and plugin wont work. It should check if plugin is available, and if not, set some variable to 0. And only if variable is 1 try to get plugin. Is it possible to make this fix?Code:def On_PluginInit(self): config = self.DeathMSGConfig() v = int(config.GetSetting("Settings", "usebannedpeoplebanlist")) if Plugin.GetPlugin("BannedPeople") is not None and v == 1: methodname = "BannedPeopleIni" pl = Plugin.GetPlugin("BannedPeople") ClassName = BannedPeople.BannedPeople() setattr(BannedPeople, "Plugin", pl) self.method = getattr(ClassName, methodname) self.bannedpeople = True Util.ConsoleLog("DeathMSG by" + __author__ + " Version: " + __version__ + " loaded.", False)
asd.....................But yes it does:
Whatever this error means, you just need to delete "Plugin.GetPlugin("BannedPeople") is not None" from IF in line 31 and it works fine.Code:Traceback (most recent call last): File "<string>", line 31 in On_PluginInit KeyError: The given key was not present in the dictionary.
I feel like it's checking if plugin exists here:
But in line 31 you just still assuming that plugin was found.Code:try: path = Util.GetRootFolder() + "\\Save\\PyPlugins\\BannedPeople" sys.path.append(path) import BannedPeople except: pass
Deleting that line is not really an option.But yes it does:
Whatever this error means, you just need to delete "Plugin.GetPlugin("BannedPeople") is not None" from IF in line 31 and it works fine.Code:Traceback (most recent call last): File "<string>", line 31 in On_PluginInit KeyError: The given key was not present in the dictionary.
I feel like it's checking if plugin exists here:
But in line 31 you just still assuming that plugin was found (I mean code assuming it, not you)Code:try: path = Util.GetRootFolder() + "\\Save\\PyPlugins\\BannedPeople" sys.path.append(path) import BannedPeople except: pass