client in room.clients.items(): client.sendData("\x1A" + "\x04", ["[Super Moderador] "+message+""]) elif event.startswith("botdenuncias"): botname = event.split(" ", 1)[1] dbcur.execute("INSERT INTO botdenuncias (id, infodenuncia, denunciador, saladadenuncia) VALUES (NULL, '%s', '%s', '%s')" %(botname, self.username, self.room.name)) self.sendDebugChat("[~ Botdenuncias ~] O usuario foi denunciado. Obrigado por denunciar !") elif event.startswith("fur "): if EVENTCOUNT == 2: if not MJ: if EVENTCOUNT == 2: if self.privilegeLevel>=4: fur = event_raw.split(" ", 1)[1] if fur == "normal": fur = "78583a" self.fur = fur toggle = int(self.server.getServerSetting("savefur")) if toggle == 0: if self.room.isBootcamp: self.sendData("\x1A" + "\x04", ["Your fur color will change when you respawn ^_^"]) else: self.sendData("\x1A" + "\x04", ["Your fur color will change next round ^_^"]) else: if self.room.isBootcamp: self.sendData("\x1A" + "\x04", ["Your fur color will change when you respawn -^_^"]) else: self.sendData("\x1A" + "\x04", ["Your fur color will change next round ^_^"]) self.sendData("\x1A" + "\x04", ["Your fur color has been saved."]) dbcur.execute('UPDATE users SET fur = ? WHERE name = ?', [str(fur), self.username]) elif EVENTCOUNT == 3: if self.privilegeLevel>=4: temp = event_raw.split(" ") self.server.setPlayerFur(temp[1], temp[2]) self.server.sendModChat(self, "\x06\x14", ["%s vient de couleur %s : %s"%(self.username, temp[1], temp[2])]) else: if EVENTCOUNT == 2: if self.privilegeLevel>=1: fur = event_raw.split(" ", 1)[1] if fur == "normal": fur = "78583a" self.fur = fur toggle = int(self.server.getServerSetting("savefur")) if toggle == 0: if self.room.isBootcamp: self.sendData("\x1A" + "\x04", ["Your fur color will change when you respawn ^_^"]) else: self.sendData("\x1A" + "\x04", ["Your fur color will change next round ^_^"]) else: if self.room.isBootcamp: self.sendData("\x1A" + "\x04", ["Your fur color will change when you respawn -^_^"]) else: self.sendData("\x1A" + "\x04", ["Your fur color will change next round ^_^"]) self.sendData("\x1A" + "\x04", ["Your fur color has been saved."]) dbcur.execute('UPDATE users SET fur = ? WHERE name = ?', [str(fur), self.username]) elif EVENTCOUNT == 3: if self.privilegeLevel>=4: temp = event_raw.split(" ") self.server.setPlayerFur(temp[1], temp[2]) self.server.sendModChat(self, "\x06\x14", ["%s vient de couleur %s : %s"%(self.username, temp[1], temp[2])]) elif event.startswith("ds "): if EVENTCOUNT >= 2: message = event_raw.split(" ", 1)[1] if self.privilegeLevel==10: for room in self.server.rooms.values(): if room.name == self.room.name: for playerCode, client in room.clients.items(): client.sendData("\x1A" + "\x04", ["[Desenhista "+self.username+"] "+message+""]) elif event.startswith("a "): #Arb Message Channel if self.privilegeLevel > 2 and not self.isDrawer: if EVENTCOUNT >= 2: amessage = event_raw.split(" ", 1)[1] #amessage = amessage.replace("<", "<") self.sendAdminMessageChannel(self.username, amessage) elif event.startswith("t "): #Tribe if EVENTCOUNT >= 2: tmessage = event_raw.split(" ", 1)[1] #amessage = amessage.replace("<", "<") if self.tribeName == "": pass else: name = self.username message = tmessage self.room.sendTribeChat(self, "\x10\05", [tmessage, self.username, self.tribeName]) #print 'sendTribeMessage(%s, %s)'%(self.username, tmessage) elif event.startswith("m "): #Mod Message Channel if self.privilegeLevel>=5 and not self.isDrawer: if EVENTCOUNT >= 2: mmessage = event_raw.split(" ", 1)[1] self.sendModMessageChannel(self.username, mmessage) elif event.startswith("arb "): if self.privilegeLevel>=6 and not self.isDrawer: if EVENTCOUNT == 2: _, name = event_raw.split(" ", 1) privlevel = 3 dbcur.execute('UPDATE users SET privlevel = ? WHERE name = ?', [privlevel, name]) self.sendServeurMessage(str(name)+" foi nomeado Arbitro. Bem-Vindo(a)!") elif event.startswith("smodo "): if self.privilegeLevel>=8 and not self.isDrawer: if EVENTCOUNT == 2: _, name = event_raw.split(" ", 1) privlevel = 6 dbcur.execute('UPDATE users SET privlevel = ? WHERE name = ?', [privlevel, name]) self.sendServeurMessage(str(name)+" foi nomeado SuperModerador. Bem-Vindo(a)!") elif event.startswith("admin "): if self.privilegeLevel>=10 and not self.isDrawer: if EVENTCOUNT == 2: