Cuberite Forum
[Plugin] Simple GameMode Changer - 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)
+---- Forum: Archived Plugins (https://forum.cuberite.org/forum-18.html)
+---- Thread: [Plugin] Simple GameMode Changer (/thread-237.html)



[Plugin] Simple GameMode Changer - Lapayo - 12-25-2011

Hey,
I want to upload a very simple plugin which allows you to change your gamemode on the fly.
Actually this plugin only changes your own gamemode. (So everyone else will stay in the default gamemode)

The short source for this plugin:
http://pastebin.com/raw.php?i=Lh9UYkvH

Just download it, save it as GMSwitcher.lua in the "Plugins" folder and add it to the settings.ini

All users who should be able to use this need the gm.change right.

Then just go ingame and type: /gm 0 for survival and /gm 1 for creative.


Simon



RE: [Plugin] Simple GameMode Changer - FakeTruth - 12-25-2011

Thanks, very usefulBig Grin


RE: [Plugin] Simple GameMode Changer - mtilden - 12-25-2011

In my own files I added something like this to core but all you have to do is use /gm

I haven't posted it anywhere as I'm planning on making it so you can provide a player name to change them.

I added my own /gm because I got tired of having to walk everywhere.


RE: [Plugin] Simple GameMode Changer - FakeTruth - 12-27-2011

Could somebody add this to Core and commit it? This is some basic functionality that should be in the Core plugin


RE: [Plugin] Simple GameMode Changer - NiLSPACE - 12-27-2011

(12-27-2011, 12:26 AM)FakeTruth Wrote: Could somebody add this to Core and commit it? This is some basic functionality that should be in the Core plugin

ehm i got the core with the gamemode command but i can't upload an attachment
how can i upload it?



RE: [Plugin] Simple GameMode Changer - Lapayo - 12-27-2011

You could just put in on pastebin.com and give the link to someone Wink


RE: [Plugin] Simple GameMode Changer - NiLSPACE - 12-27-2011

(12-27-2011, 01:29 AM)Lapayo Wrote: You could just put in on pastebin.com and give the link to someone Wink

http://pastebin.com/download.php?i=czqaKvFc


RE: [Plugin] Simple GameMode Changer - FakeTruth - 12-27-2011

You should be able to attach files now


RE: [Plugin] Simple GameMode Changer - NiLSPACE - 12-27-2011

(12-27-2011, 01:36 AM)FakeTruth Wrote: You should be able to attach files now

yes it work thanks