Cuberite Forum
[WEB] Show plugin permissions - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Releases (https://forum.cuberite.org/forum-2.html)
+--- Thread: [WEB] Show plugin permissions (/thread-2150.html)

Pages: 1 2 3


RE: [WEB] Show plugin permissions - JonnyBoy0719 - 10-09-2015

(10-09-2015, 12:22 AM)NiLSPACE Wrote: Wow, I'm impressed. The only thing that you might want to change is showing a "Remove Permission" instead of no button at all.

But seriously, I'm amazed that this is your first Cuberite plugin.

When I saw that you used LUA for plugins, I dived straight in since I already know some LUA Smile And yeah, I could do that, can do a small update to include it.



Also, One thing you might have noticed on the video is that I added a command for Core called /killall, basically the same idea from Bukkit Essentials, execpt it kills all hostile mobs in the world (or do /killall all to kill non hostile ones (wolfs, cats, squids, villagers etc))

Here is the code thoTongue

function HandleKillMobsCommand( Split, Player )
	local GetMobs = 0
	local CountIfMob = function(Entity)
		if Entity:IsMob() and not Entity:IsDestroyed() then
			GetMobs = GetMobs + 1
			local class = Entity:GetClass()
			
			-- Got lazy here
			if Split[2] == "" or Split[2] ~= "all" then
				if class == "cSkeleton" or class == "cEnderman" or class == "cZombie" or class == "cSpider" or class == "cGuardian" or class == "cSlime" then
					Entity:Destroy()
				end
			else
				Entity:Destroy()
			end
		end
	end
	
	Player:GetWorld():ForEachEntity(CountIfMob)
	
	Player:SendMessage("All " .. GetMobs .. " mobs has been deleted")
	
	return true
end

a quick little bump, the remove permission has now been added, and its on github Smile


RE: [WEB] Show plugin permissions - NiLSPACE - 10-13-2015

I just noticed that you are using a function called HTMLError, but you haven't defined it yet.


RE: [WEB] Show plugin permissions - JonnyBoy0719 - 10-15-2015

(10-13-2015, 05:28 PM)NiLSPACE Wrote: I just noticed that you are using a function called HTMLError, but you haven't defined it yet.

Yeah, looks like i forgot to include the function. Will do a simple update now so it will include the HTMLError. :p


RE: [WEB] Show plugin permissions - chrobione - 12-11-2015

So i got a simpleton question.....how do i install it ?

do i need to download the files seperately? or just do it like any other plugin?

Thanks for your help

Chrobi


RE: [WEB] Show plugin permissions - Schwertspize - 12-11-2015

Download the plugin files into Server/Plugins and the webadmin files into Server/webadmin
That means
plugins/webber missions in repo should be in Server/Plugins/webpermissions
webadmin/files/datatables In the repo should be in Server/webadmin/files/datatables

then activate the plugin via webadmin or config.


RE: [WEB] Show plugin permissions - chrobione - 12-11-2015

(12-11-2015, 03:24 PM)Schwertspize Wrote: Download the plugin files into Server/Plugins and the webadmin files into Server/webadmin
That means
plugins/webber missions in repo should be in Server/Plugins/webpermissions
webadmin/files/datatables In the repo should be in Server/webadmin/files/datatables

then activate the plugin via webadmin or config.

Works like a charm.... Thank you.