First commit
This commit is contained in:
		
							
								
								
									
										19
									
								
								app/SabrehavenServer/data/talkactions/scripts/kick.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								app/SabrehavenServer/data/talkactions/scripts/kick.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
function onSay(player, words, param)
 | 
			
		||||
	if not player:getGroup():getAccess() then
 | 
			
		||||
		return true
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	local target = Player(param)
 | 
			
		||||
	if target == nil then
 | 
			
		||||
		player:sendCancelMessage("Player not found.")
 | 
			
		||||
		return false
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	if target:getGroup():getAccess() then
 | 
			
		||||
		player:sendCancelMessage("You cannot kick this player.")
 | 
			
		||||
		return false
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	target:remove()
 | 
			
		||||
	return false
 | 
			
		||||
end
 | 
			
		||||
		Reference in New Issue
	
	Block a user