Cuberite Forum

Full Version: [Plugin] Simple GameMode Changer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Thanks, very usefulBig Grin
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.
Could somebody add this to Core and commit it? This is some basic functionality that should be in the Core plugin
(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?
You could just put in on pastebin.com and give the link to someone Wink
(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
You should be able to attach files now
(12-27-2011, 01:36 AM)FakeTruth Wrote: [ -> ]You should be able to attach files now

yes it work thanks