Commit Graph

78 Commits

Author SHA1 Message Date
Dico200
13606638b7 Fix calc 2016-05-31 18:03:46 +02:00
Dico200
5d3530242e Another tiny tweak to @debug 2016-05-30 22:58:27 +02:00
Dico200
c7d872c93b Fix @debug decorator not returning results 2016-05-30 22:55:06 +02:00
Dico200
c78d0f651b Hotfix for chatalias 2016-05-30 01:11:34 +02:00
Dico200
fe32e7a49c Cleaned up some of helpers.py 2016-05-30 00:05:49 +02:00
PixelSergey
621f4ca23b Added a debug decorator, use @debug to nicely print function errors 2016-03-08 20:32:56 +02:00
BuildTools
cbc77de826 Helpers v2.0.0, added versioning, added array_to_list and get_permission_content, renamed isIP to is_ip 2016-01-09 16:42:26 +01:00
Dico200
1969584312 Revert "Merge branch 'wrapper' of https://github.com/RedstonerServer/redstoner-utils into wrapper"
This reverts commit 4d5861fd36, reversing
changes made to 9d0e4c99ba.
2015-11-25 15:49:52 +01:00
BuildTools
70b4db5318 added wrappers, temp disabled all modules 2015-11-23 22:17:40 +01:00
Dico200
aa86881f5e Fix survival use of /signalstrength, other interesting changes 2015-11-03 19:05:15 +01:00
Pepich
086eade43f fixed colorify method 2015-10-30 16:36:47 +01:00
Dico200
9119c3d150 Moved /signalstrength to its own file, added default configurability, added basecommands documentation, added can_build() to helpers 2015-10-20 18:03:05 +02:00
Pepich
9a93cd3203 Added two functions for the iptracker 2015-10-18 15:36:08 +02:00
PanFritz
1cc8126a9f Added args and kwargs 2015-09-11 11:44:46 +02:00
PanFritz
945cc977a7 Imported db password and user from secrets, added target_args 2015-09-01 00:42:19 +02:00
PanFritz
f711f5e46c Added async_query since we need to remake all of our db interaction to be in a seperate thread 2015-08-31 03:25:37 +02:00
PanFritz
0ea6183c03 Merge branch 'dev' of github.com:RedstonerServer/redstoner-utils into dev
Conflicts:
	loginsecurity.py
	player.py
2015-08-18 00:24:26 +02:00
PanFritz
039d79fa0c remade loginsecurity to use py_player 2015-08-17 04:06:34 +02:00
jomo
45008c0443 remove trailing whitespace, replace tabs with 4x space 2015-08-13 00:30:54 +02:00
Dico200
3cbb8dc9bd Prevent /up griefing, add /ackey, minor tweaks
Dunno why its posting 'changes' in main.py tho
2015-06-03 01:09:07 +02:00
Dico200
057b404b03 Small change to open_json_file() 2015-05-18 23:00:54 +02:00
Dico200
211fb08265 Removed color support for /me for players w/o perms 2015-04-13 18:16:00 +02:00
Dico200
75823ed042 Added basecommands.py
Contains @simplecommand and @basecommand
Slightly alterred simplecommand, made both display the command's
required permission when displaying help if the sender has the
permission "utils.showpermission".

Also a small tweak in misc.py's join listener.
2015-03-26 16:44:21 +01:00
Dico200
75c9a86ba3 Replaced /sudo and /me with @simplecommand hook
Also improved simplecommand a little bit.
Don't ask me why it doesn't work in its own file as I have no clue, it
wasn't tracing the errors.
2015-03-25 00:38:56 +01:00
Dico200
d160bbd91a Revert "Moved simplecommand to its own module"
This reverts commit 669c2d0eb8.
2015-03-24 23:45:23 +01:00
Dico200
669c2d0eb8 Moved simplecommand to its own module
The module is named simplecommand.py (wow, didn't expect that!)

And I also cleaned it up a little bit, and tried to make clear how the
fuck it works. This shit is weird.
2015-03-23 23:24:10 +01:00
Dico200
7b8242697a CommandManager works! (Renamed to simplecommand)
See at the bottom of helpers.py!
I'm quite excited for this addition <3
2015-03-23 23:03:11 +01:00
Dico200
55ac6c0977 Change /sudo command fixes #14 2015-03-18 21:09:49 +01:00
Dico200
5ef17713a4 Change runas() in helpers to use player.chat 2015-03-15 04:03:40 +01:00
PanFritz
59c5c8ed02 import 2015-01-17 04:19:03 +01:00
PanFritz
cdc747b740 added import 2015-01-17 01:18:06 +01:00
PanFritz
a86331c33d added import 2015-01-17 00:47:49 +01:00
jomo
9a916ed2cd change indentation from 2 spaces to 4, fix #5 2015-01-06 23:38:42 +01:00
jomo
91d4a1e186 re-implement toggle()'s add=True|False 2015-01-06 22:36:57 +01:00
jomo
50b09138f8 re-add optional arg to toggle() 2015-01-06 22:30:30 +01:00
jomo
7d7d5e16e1 remove junk in toggle() 2015-01-06 22:19:06 +01:00
PanFritz
fb4aff2e04 Removed 'add' condition from helpers.py toggle method 2015-01-06 22:08:36 +01:00
jomo
01da1ed812 more docs for helpers, removed unused warp() 2015-01-02 02:26:52 +01:00
jomo
00dfc770fe add name parameter to toggle() 2015-01-02 02:20:02 +01:00
Louis Vogt
229ee65e2a Merge branch 'dev' of bitbucket.org:redstonesheep/redstoner-utils into dev 2014-08-07 02:36:23 +02:00
jomo
733e669e8b clarifiy known_player a bit more 2014-08-07 01:50:26 +02:00
Louis Vogt
cb8334b533 Modified known_player method 2014-08-07 01:46:53 +02:00
jomo
63810a0782 better name + docs for played_before (renamed to known_player) 2014-07-27 22:44:12 +02:00
jomo
4707b0fd91 more documentation 2014-07-27 22:39:20 +02:00
jomo
81669c62d7 rename log to info 2014-07-27 22:20:18 +02:00
jomo
1ee5d9b456 add warn() logging 2014-07-27 22:17:24 +02:00
jomo
333437e87a readability 2014-07-27 21:52:55 +02:00
jomo
9231d23bcb readability 2014-07-27 19:43:06 +02:00
jomo
e9b0ad656b add path to save/open json file 2014-07-27 06:04:31 +02:00
jomo
d58d975910 add default to open_json_file 2014-07-27 06:01:52 +02:00