Commit Graph
96 Commits
Author SHA1 Message Date
Dico200 487375dd07 Added loginsecurity module
Added to make an easily adjustible version of LoginSecurity.
LoginSecurity does not (seem to) support name changes since it retrieves
the UUID used from a byte[] of "OfflinePlayer:<username>" which means
the UUID changes when a player changes their name. This should fix
/rmpass. It uses BCrypt. I'll test this on the dev server (hoping bcrypt
is installed)
2015-04-17 00:10:21 +02:00
Dico200 ab1087f210 Adminnotes fix continued message used for next note
Also code cleanup
2015-04-16 18:33:09 +02:00
Dico200 2c1292015b Made lava not break redstone components in Creative
I tested thoroughly. I don't see how this will break other parts of the
plugin either.
2015-04-14 21:20:55 +02:00
Dico200 055a9073f4 Hotfix in /sudo 2015-04-13 18:38:16 +02:00
Dico200 85df528fc3 Added /rp list as alias for /rp open 2015-04-13 18:38:03 +02:00
Dico200 2c063d638f Tweaks in imout, primarily making player vanish 2015-04-13 18:16:40 +02:00
Dico200 211fb08265 Removed color support for /me for players w/o perms 2015-04-13 18:16:00 +02:00
Dico200 ce3b911b35 /pluginversions is broken, Fixed mail send colours.
I attempted to fix /pluginversions but ended up just commenting it out.
The problem is in retrieving the plugins where instead of object type
Plugin it returns "array.array"? I tried a whole bunch of things but I
didn't succeed to make it work.
2015-04-10 23:55:30 +02:00
Dico200 b232cbf5cf Small fix 2015-04-10 00:39:09 +02:00
Dico200 f3833a6733 Untested change to add pyeval possibility to args
so you do like, for example:
/pex user EVAL:server.getOfflinePlayer("Dico200").getUniqueId()

this could also be used in chat. I know its pretty useless but useful in
some cases.
2015-04-10 00:37:51 +02:00
Dico200 d85b96f875 Clean up misc.py, add space support for cg key 2015-04-10 00:13:06 +02:00
Dico200 9a0767676c Didn't upload this for some reason 2015-04-09 01:39:41 +02:00
Dico200 58eea64148 I love less-than-one line list creators! 2015-04-09 01:38:58 +02:00
Dico200 812e2c3aaf Changed version to 3.1.0 :D no reason 2015-04-09 01:25:52 +02:00
Dico200 9ddd523c58 Added player configurable chatgroup keys
The keys are stored in chatgroup_keys.json
2015-04-09 01:23:00 +02:00
Dico200 34b59e61fe Revert "Revert "Change to /modules... trying to make @command work.""
This reverts commit da756d69cc.
2015-04-08 22:34:44 +02:00
Dico200 da756d69cc Revert "Change to /modules... trying to make @command work."
This reverts commit 201c766119.
2015-04-08 22:32:54 +02:00
Dico200 201c766119 Change to /modules... trying to make @command work.
@command throws an error when it tries to access current_subs, which
supposedly didn't exist. current_subs stores all subcommands found when
defining the method which @command was added to. (These SHOULD be called
first)
2015-04-08 22:32:14 +02:00
Dico200 f7abc20ca1 Don't even bother. 2015-04-03 02:04:25 +02:00
Dico200 de43b0d0db Added (sub/main)command, removed abot error check
@command is untested.
2015-04-03 02:01:57 +02:00
Dico200 661e25dc67 Some tweaks and updates 2015-03-29 12:48:32 +02:00
Dico200 6590a8d30a Added cmd check to ABOT, commented out advancedcmd
advancedcmd doens't work atm, apparently
function.func_code is a thing but adding co_consts isn't an attribute of
that.

Tested abot, seems to work well.
2015-03-28 16:39:09 +01:00
Dico200 4cfa3a598f Tiny tweaks in basecommands.py 2015-03-26 16:48:54 +01: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 9855f62e7b Replaced /pyeval too, untested atm. 2015-03-25 00:55:13 +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 f1b2c61411 Fix reports.py. Oops. 2015-03-23 22:04:53 +01:00
Dico200 5f2ee6add9 Added commandmanager module. ALSO UNTESTED!
Will test now.
2015-03-23 21:30:44 +01:00
Dico200 f6de0a6c78 Added synchronizeranks. Untested! 2015-03-23 20:08:38 +01:00
Dico200 8a95dc65f6 Quick fix 2015-03-20 01:28:02 +01:00
Dico200 98774e8f84 Report code cleanup and /rp reopen
These changes are not yet tested!!!
2015-03-20 01:25:35 +01:00
Dico200 71c0f8782c Removed redundant code check and small tweak 2015-03-20 00:07:47 +01:00
Dico200 3bdb56e8a2 Changed reports module fixes #10
Write /rp ingame for new commands n stuff.
2015-03-20 00:06:47 +01:00
Dico200 1750c82208 Changed all CommandExecutor arguments
Added arguments command and label to all command executor functions,
hopefully for massive performance increase.

This is due to the following mess in PythonLoader:
``` Java
@Override
public boolean onCommand(CommandSender sender, Command command, String
label, String[] args) {
boolean result;
if (argcount == -1) {
try {
result = call(4, sender, command, label, args);
argcount = 4;
} catch (PyException e) {
//this could goof up someone ... they'll probably yell at us and
eventually read this code ... fuck them
if (e.type == Py.TypeError && (e.value.toString().endsWith("takes
exactly 3 arguments (4 given)") || e.value.toString().endsWith("takes
exactly 4 arguments (5 given)"))) {
result = call(3, sender, command, label, args);
argcount = 3;
} else if (e.type == Py.TypeError && (e.value.toString().endsWith("takes
exactly 2 arguments (4 given)") || e.value.toString().endsWith("takes
exactly 3 arguments (5 given)"))) {
result = call(2, sender, command, label, args);
argcount = 2;
} else {
throw e;
}
}
} else {
result = call(argcount, sender, command, label, args);
}
return result;
}
```

Note: Still WIP on reports - I'm working on making it keep solved
reports to fix issue 10
2015-03-19 23:51:33 +01:00
Dico200 d993cc223a Changed AC from toggle or , fixes #16
This solution to log any AC isn't very optimised as it will check for
permission twice. Any fix for this?

Anyways it now runs /ac <msg> from the player every time.
2015-03-19 22:02:07 +01:00
Dico200 40fa9c0692 simplified /me in misc.py
Replaced online user iteration with broadcast method
2015-03-19 21:51:13 +01:00
Dico200 5d23fe490b Remove annoying Damnspam plugin header
I hate plugin_header, can we maybe make it return a string which we
append the message to instead? ._.
or create like plugin_message(String pluginname, Player recipient,
String message)
2015-03-19 20:25:47 +01:00
Dico200 9476a1b0b7 Remove redundant try/catch 2015-03-18 22:26:54 +01:00
Dico200 194958f034 me cmd appearance hotfix (made new cmd) fixes #15 2015-03-18 22:25:58 +01:00
Dico200 55ac6c0977 Change /sudo command fixes #14 2015-03-18 21:09:49 +01:00
Dico200 39654bf4a7 Re-enabled AdminNotes module 2015-03-17 00:56:50 +01:00
Dico200 f1856d3243 Disable adminnotes, fix stuff 2015-03-15 04:17:12 +01:00
Dico200 5ef17713a4 Change runas() in helpers to use player.chat 2015-03-15 04:03:40 +01:00
Dico200 96b4cb2e3f Disabled snowbrawl 2015-03-15 04:00:51 +01:00
Dico200andjomo 88a935f473 Fixed UUID problem in Pmtoggle
Thanks @jomo  for pointing out
2015-03-15 03:00:55 +01:00
Dico200andjomo ad70989a40 Add colon in pmtoggle 2015-03-15 03:00:55 +01:00
Dico200andjomo a24c7092f7 Add check if chatevent is cancelled in pmtoggle 2015-03-15 03:00:52 +01:00
Dico200andjomo dc307fc5f0 cherry-pick pmtoggle into master 2015-03-15 03:00:18 +01:00
Dico200 1b2b3c2fa9 Fixed UUID problem in Pmtoggle
Thanks @jomo  for pointing out
2015-03-15 02:41:58 +01:00
Dico200 c0c1879fde Add colon in pmtoggle 2015-03-15 02:30:52 +01:00
Dico200 017d53928a Add check if chatevent is cancelled in pmtoggle 2015-03-15 02:30:33 +01:00
Dico200 bab2a6e198 Added pmtoggle to shared["load_modules"] in main 2015-03-15 02:20:41 +01:00
Dico200 5a669893b4 Remove redundant try/except in Pmtoggle module 2015-03-15 02:18:02 +01:00
Dico200 9a3942c034 pmtoggle works now, Fixes comments by Jomo
BTW: I didn't use retrieve_player as it gets an Offline player which
makes it slower and I know the player is online. That's why I used
Bukkit.getPlayer(juuid(uuidstring)). (line 40)
2015-03-15 02:16:30 +01:00
Dico200 43a8ec9481 Added pmtoggle module
pmtoggle adds /tm [player](togglemessage).
When activated, any chat message you send will be sent as:
/msg [player] [msg]
2015-03-15 01:13:36 +01:00
Dico200 1fd3d591f9 Fixed a little code in snowbrawl.py... even if its an outdated version. 2015-02-21 15:55:41 +01:00
Dico aafac2fe5a Minor change 2014-07-23 01:04:53 +02:00
Dico 8751123f8c Removed useless lines 2014-07-23 00:56:31 +02:00
Dico 1cba2f9db9 Didn't add module last time...? 2014-07-23 00:55:32 +02:00
Dico 5a47cf3c20 Added friends module. Thanks piggly for testing! :D 2014-07-23 00:53:24 +02:00
Dico 6d3d2edf51 README.md edited online with Bitbucket 2014-07-19 03:10:02 +00:00
Dico ff7053e1b3 Fixed shecode. I knowo that 'file' is the correct spelling, but that does weird stuff and turns blue so just leave it this works and sheeps code doesnt <3 2014-07-19 05:02:09 +02:00
Dico 6ae2f4971a Added toggle() to helpers.py. I haven't tested it thoroughly but it doesn't give errors on start. You can read the comment for more info :D 2014-07-19 04:53:51 +02:00
Dico 4966dac92e Minor tweaks and fixes 2014-07-19 02:00:54 +02:00
Dico 7c2306df9c Merge branch 'dev' of bitbucket.org:redstonesheep/redstoner-utils into dev 2014-07-19 01:52:27 +02:00
Dico 775bdc6205 Small fixes and tweaks 2014-07-19 01:51:29 +02:00
Dico 231a5b8322 Stuff added to helpers.py, forcefield updated to be a lot more efficient (simple change) 2014-07-19 01:39:08 +02:00
Dico 30d670bade minor changes. @Sheep: Take a look at the changes I made to helpers module and tell me if I'm stupid. 2014-07-18 03:45:28 +02:00
Dico d2270ac263 Git messed around with my files, I updated it to use the uid() function in helpers.py now. 2014-07-18 02:50:14 +02:00
Dico 5373a1c4a4 wtf git adding random stuff to my files 2014-07-18 02:36:52 +02:00
Dico 835a7aa9fb Happy with this version/build. @Sheep: Don't fix my 'dicode'! 2014-07-18 02:27:24 +02:00
Dico 8701578875 Rewrote velocity calculation. 2014-07-17 17:47:49 +02:00
Dico 15c06f011b Minor fix 2014-07-17 16:06:11 +02:00
Dico 372a831c82 Converted reports module to UUID and minor changes to forcefield module 2014-07-17 15:26:48 +02:00
Dico 2c1c6928a9 removing feature which doesnt work and is stupid 2014-07-17 05:40:54 +02:00
Dico 760d2a4d16 Cool stuff 2014-07-17 05:29:55 +02:00
Dico f45547f808 Another minor change 2014-07-17 05:10:24 +02:00
Dico 9f6186ad15 Minor change 2014-07-17 04:54:44 +02:00
Dico eab60c5502 No saving to files yet, but it definitely works well now. 2014-07-17 04:49:31 +02:00
Dico f709533ade Updates! YAY! 2014-07-17 03:48:14 +02:00
Dico 23f85b4baa Merge branch 'dev' of bitbucket.org:redstonesheep/redstoner-utils into dev 2014-07-17 01:17:28 +02:00
Dico 0b94c02757 Working version 2014-07-17 01:13:22 +02:00
Dico cda6984726 Fixing bugs & Cleaning up code. Seems to work well now! 2014-07-17 00:48:41 +02:00
Dico d2ec8b6d3f Sorry for spam 2014-07-15 19:36:50 +02:00
Dico ad885d8707 Fixing movement bugs 2014-07-15 19:16:30 +02:00
Dico 2acd32f80e Think I finally fixed ALL forcefield bugs, command-side-wise 2014-07-15 18:49:36 +02:00
Dico 4b15a85ac8 Fixing moar bugs! 2014-07-15 14:19:45 +02:00
Dico b84a4d837a Fixing bugs... 2014-07-15 14:07:48 +02:00
Dico c4e206f44e Unfixing fix 2014-07-14 13:38:26 +02:00
Dico cce3c028a4 Fixing bugs 2014-07-14 13:32:37 +02:00
Dico ffae4e7d30 Added forcefield whitelist and hopefully fixed some bugs 2014-07-14 13:08:15 +02:00
Dico 63a2e9519e Merge branch 'dev' of bitbucket.org:redstonesheep/redstoner-utils into dev 2014-07-14 02:42:45 +02:00
Dico 89cb6d2d2e added forcefield module, will make whitelist option later 2014-07-14 02:40:00 +02:00