Commit Graph
60 Commits
Author SHA1 Message Date
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